Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown plugin "transform-undefined-to-void" #129

Open
sorja opened this issue Jan 27, 2018 · 0 comments
Open

Unknown plugin "transform-undefined-to-void" #129

sorja opened this issue Jan 27, 2018 · 0 comments

Comments

@sorja
Copy link

sorja commented Jan 27, 2018

Running a project including the package throws an error with the newest (to date) parcel and yarn.
Building the project after running yarn fixes the problem

~> yarn add react-headroom
yarn add v1.3.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
success Saved 7 new dependencies.
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
├─ [email protected]
└─ [email protected]
✨  Done in 3.47s.

Adding package doesn't throw error.

~> yarn start
yarn run v1.3.2
$ parcel src/index.html
Server running at http://localhost:1234
🚨  /Users/user/proj/project/node_modules/react-headroom/dist/index.js: Unknown plugin "transform-undefined-to-void" specified in "/Users/user/proj/project/node_modules/react-headroom/.babelrc" at 0, attempted to resolve relative to "/Users/user/proj/project/node_modules/react-headroom"
    at /Users/user/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:180:17
    at Array.map (<anonymous>)
    at Function.normalisePlugins (/Users/user/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:158:20)
    at OptionManager.mergeOptions (/Users/user/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:234:36)
    at OptionManager.init (/Users/user/.config/yarn/global/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
    at File.initOptions (/Users/user/.config/yarn/global/node_modules/babel-core/lib/transformation/file/index.js:212:65)
    at new File (/Users/user/.config/yarn/global/node_modules/babel-core/lib/transformation/file/index.js:135:24)
    at JSAsset.getParserOptions (/Users/user/.config/yarn/global/node_modules/parcel-bundler/src/assets/JSAsset.js:71:20)
    at <anonymous>
^C
~> cd node_modules/react-headroom/
~> cat package.json | grep transform
    "babel-plugin-transform-undefined-to-void": "^6.8.0",
~> yarn
yarn install v1.3.2
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
warning " > [email protected]" has unmet peer dependency "webpack@1 || 2 || ^2.1.0-beta || ^2.2.0-rc".
warning " > [email protected]" has incorrect peer dependency "eslint-plugin-import@^1.16.0".
warning "eslint-config-airbnb > [email protected]" has incorrect peer dependency "eslint-plugin-import@^1.16.0".
[4/4] 📃  Building fresh packages...
✨  Done in 17.06s.
~> yarn build
yarn run v1.3.2
$ babel --copy-files src --out-dir dist
src/index.js -> dist/index.js
src/shouldUpdate.js -> dist/shouldUpdate.js
✨  Done in 0.90s.
~> cd -
/Users/user/proj/project
~> yarn start
yarn run v1.3.2
$ parcel src/index.html
Server running at http://localhost:1234
✨  Built in 3.38s.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant