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

Requires babel? #1

Closed
matthewp opened this issue Dec 5, 2017 · 4 comments
Closed

Requires babel? #1

matthewp opened this issue Dec 5, 2017 · 4 comments

Comments

@matthewp
Copy link

matthewp commented Dec 5, 2017

Hello, cool project. I tried running this on one of my projects and encountered an error Unknown plugin "transform-es2015-modules-commonjs" specified in "base" at 0, attempted to resolve relative to "/Users/matthew/dev/my-project"

I think it is looking up this plugin within my project, but I did not have this plugin (or any babel plugin) installed. This project uses ES import/export syntax. Is Babel usage required at this time?

@devongovett
Copy link
Member

Ah thanks. Babel is used internally to compile es2015 imports to require statements. Probably need to resolve the module locally to parcel instead of the project here https://github.com/parcel-bundler/parcel/blob/master/src/transforms/babel.js#L18

@devongovett
Copy link
Member

Published v1.0.1 which should fix this issue.

@tnrich
Copy link

tnrich commented Dec 6, 2017

Hey there, I'm seeing this error:

/Users/tnrich/Sites/lims/node_modules/teselagen-react-components/lib/index.js: Couldn't find preset "stage-0" relative to directory"/Users/tnrich/Sites/lims/node_modules/teselagen-react-components"

any thoughts as to why it would be trying to look for babel presets in there? The code in /lib of that node_module is already compiled as far as I know. Thanks!

@spalger
Copy link
Contributor

spalger commented Dec 7, 2017

@tnrich Checkout #13

mikecabana referenced this issue in mikecabana/parcel Dec 7, 2017
devongovett pushed a commit that referenced this issue Feb 4, 2018
treshugart referenced this issue in atlassian/parcel Sep 26, 2019
Restore invariant asserting bundles don't have external assets

Approved-by: Trey Shugart <[email protected]>
AGawrys pushed a commit that referenced this issue Dec 7, 2020
Hotfix/hash references of undefined

Approved-by: Will Binns-Smith
yamadapc pushed a commit that referenced this issue Aug 19, 2024
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

4 participants