Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've created a ES6 module that I want to stick up onto NPM and use in my web projects. So I set it up with babel to convert it into commonjs and this does seem to work fine. but under some circumstances I'm having problems with it.
I'm exporting the NPM project with the following package.json
This appears to work correctly as when I import into my web project it does run fine. However one of the older projects running on babel v6 required babelify to be set to global true, and this is now throwing up the error. can't work out why it would happen as I'm loading in a NPM package that has been compiled to commonjs so why it's flagging that the project is missing preset-env is a mystery to me.
I tried setting babelify to ignore everything but the offending package but that doesn't seem to have any effect, it still acts like I want to global true everything in node_modules.
At this point I'm so confused after going through about 80 tabs on Chrome as to if this is an issue with my NPM package or an issue with my website project. so if anyone can even point me in the right direction I'd be thankful.
Beta Was this translation helpful? Give feedback.
All reactions