Coder Social home page Coder Social logo

Error: WebPack about vue-simple-calendar HOT 10 CLOSED

 avatar commented on June 24, 2024
Error: WebPack

from vue-simple-calendar.

Comments (10)

jclark-mossio avatar jclark-mossio commented on June 24, 2024 1

@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.

 avatar commented on June 24, 2024 1

@richardtallent Works Fine thank's !

from vue-simple-calendar.

jclark-mossio avatar jclark-mossio commented on June 24, 2024

I am having the same issue

from vue-simple-calendar.

richardtallent avatar richardtallent commented on June 24, 2024

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.

richardtallent avatar richardtallent commented on June 24, 2024

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.

jclark-mossio avatar jclark-mossio commented on June 24, 2024

@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.

jclark-mossio avatar jclark-mossio commented on June 24, 2024

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.

richardtallent avatar richardtallent commented on June 24, 2024

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.

richardtallent avatar richardtallent commented on June 24, 2024

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.

richardtallent avatar richardtallent commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.