Comments (10)
@richardtallent Thanks for working on this! I will work on getting it updated on my end to see if we can build. We were able to build for production by manually running the mixin-calendarMath.js through a babel compiler then putting the file back in. Obviously not a good long-term solution for us, but allowed us to deploy. I really appreciate you working on this fix for us!
from vue-simple-calendar.
@richardtallent Works Fine thank's !
from vue-simple-calendar.
I am having the same issue
from vue-simple-calendar.
Seems like some sort of dev dependency issue... I probably broke something in package.jsom. I admit node and Babel stuff isnโt my strong suit, but Iโll see if I can reproduce and figure it out this weekend.
In the meantime, can you tell me your version of node and n0pm?
from vue-simple-calendar.
I believe I found the culprit... the babel config was referencing an unnecessary preset. Please update to version 1.7.1 and see if that resolves the issue. Thanks!
from vue-simple-calendar.
@richardtallent thanks for taking a look at this. Upgrading it on my end did not work. Hre is my log file
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'run',
1 verbose cli 'production' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'preproduction', 'production', 'postproduction' ]
5 info lifecycle @~preproduction: @
6 info lifecycle @~production: @
7 verbose lifecycle @~production: unsafe-perm in lifecycle true
8 verbose lifecycle @~production: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/jeffclark/Documents/websites/projects/laravel/nucleus/node_modules/.bin:/Users/jeffclark/.phpbrew/php/php-7.0.16/bin:/Users/jeffclark/.phpbrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands
9 verbose lifecycle @~production: CWD: /Users/jeffclark/Documents/websites/projects/laravel/nucleus
10 silly lifecycle @~production: Args: [ '-c',
10 silly lifecycle 'cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js' ]
11 silly lifecycle @~production: Returned: code: 2 signal: null
12 info lifecycle @~production: Failed to exec production script
13 verbose stack Error: @ production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
13 verbose stack Exit status 2
13 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack at emitTwo (events.js:106:13)
13 verbose stack at EventEmitter.emit (events.js:191:7)
13 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack at emitTwo (events.js:106:13)
13 verbose stack at ChildProcess.emit (events.js:191:7)
13 verbose stack at maybeClose (internal/child_process.js:885:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
14 verbose pkgid @
15 verbose cwd /Users/jeffclark/Documents/websites/projects/laravel/nucleus
16 verbose Darwin 16.7.0
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "production"
18 verbose node v7.4.0
19 verbose npm v5.6.0
20 error code ELIFECYCLE
21 error errno 2
22 error @ production: cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js
22 error Exit status 2
23 error Failed at the @ production script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 2, true ]
from vue-simple-calendar.
Also this is the error when building
ERROR Failed to compile with 1 errors 8:59:56 AM
error
/js/app.01fb2841f5c492f53950.js from UglifyJs
Unexpected token: punc (() [./~/vue-simple-calendar/src/components/mixin-calendarMath.js:16,0][/js/app.01fb2841f5c492f53950.js:32788,7]
from vue-simple-calendar.
What does your babel config look like? The second error suggests your environment isn't set up to build from ES6 / ECMAScript 2015 source code, since it's bailing on the shorthand notation for function declaration in the mixin.
We have the same version of npm, I'm using an older version of node but I can't imagine that would be the issue.
Reopening until we can figure it out...
from vue-simple-calendar.
Follow-up -- I just spent a few hours rebuilding my other component, vue-stars, because I was having trouble using it as well in a separate app. Decided to split the component from the sample app so the resulting npm package is dirt-easy to use. I think I'm going to do the same with this one. I'm still not exactly sure what the problem is, but I have some suspicions and I think this will clear up the issue.
from vue-simple-calendar.
I've split up the calendar component from its sample app... painful but I think necessary, the PWA template used for the sample app just isn't good for publishing a component. Please give the latest version a shot (1.8.1, live on npm). Your import and require statements should be adjusted (see the readme for the current sample code). I'll leave this open until you can confirm it's working...
from vue-simple-calendar.
Related Issues (20)
- Bug when using item specific classes HOT 6
- do we support drag in batch? HOT 1
- delete this
- tooltip doesn't work HOT 2
- Misaligned row in demo HOT 4
- missing export in package.json HOT 3
- Clicking & URL issues HOT 2
- How can we get the selected object from the array? HOT 1
- Error of import HOT 3
- Feature Request: Show weekdays only HOT 1
- Error when importing vue-simple-calendar/dist/style.css HOT 3
- Can't use named slots with camelCase like dayContent HOT 2
- Time slots in weekly view HOT 1
- Week Numbers are off by 1 HOT 1
- Day order HOT 2
- v7.0 error [vite:resolve] Failed to resolve entry for package "vue-simple-calendar" HOT 2
- ReadMe update HOT 1
- Month skipping in month view HOT 2
- HTML tags in `title` attribute HOT 1
- Typescript error with moduleResolution: 'bundler'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-simple-calendar.