Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Upgrade babel-core #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Upgrade babel-core #5

wants to merge 1 commit into from

Conversation

jessedobbelaere
Copy link

I cloned and tried to build the Paw Plugin. Unfortunately ran into a few npm errors.

❯ make install
rm -Rf ./build/
npm run build

> Paw-JsonWebTokenDynamicValue@0.0.0 build /Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue
> rm -rf dist/ && BUILD_ENV=build ./node_modules/.bin/webpack --bail --display-error-details

path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.dirname (path.js:1324:5)
    at /Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:353:36
    at /Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:375:22
    at Array.map (native)
    at OptionManager.resolvePresets (/Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:364:20)
    at OptionManager.mergePresets (/Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:348:10)
    at OptionManager.mergeOptions (/Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:307:14)
    at /Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:349:14
    at /Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/node_modules/babel-core/lib/transformation/file/options/option-manager.js:369:24

npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/Cellar/node/7.3.0/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v7.3.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! Paw-JsonWebTokenDynamicValue@0.0.0 build: `rm -rf dist/ && BUILD_ENV=build ./node_modules/.bin/webpack --bail --display-error-details`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Paw-JsonWebTokenDynamicValue@0.0.0 build script 'rm -rf dist/ && BUILD_ENV=build ./node_modules/.bin/webpack --bail --display-error-details'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the Paw-JsonWebTokenDynamicValue package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     rm -rf dist/ && BUILD_ENV=build ./node_modules/.bin/webpack --bail --display-error-details
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs Paw-JsonWebTokenDynamicValue
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls Paw-JsonWebTokenDynamicValue
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jessedobbelaere/Downloads/Paw-JsonWebTokenDynamicValue/npm-debug.log
make: *** [build] Error 1

I'm running pretty recent node and npm versions. After some googling I found that the issue is related to babel-core and webpack. Upgrading fixes it for me. Plugin still builds correctly and runs fine.

❯ node -v
v7.3.0
❯ npm -v
3.10.10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant