-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
create-react-app won't build when depending on obj-str #2
Comments
Hey there, Unfortunately, that's because of this issue. This module exposes a Closing since this is a heavily discussed CRA issue, but you could manually delete the FWIW: CRA should be adding a Hope that helps! |
FYI, we're starting the work to compile deps with Let us know if you have feedback about how this should work. That said, I disagree with the conclusion in this thread. The |
Hey @gaearon, I saw that -- cool~! And correct, it's just a hand-off. I'm not sure if it was Rollup specifically, but the working "spec" stated that a module-entry should be ES5 code but with a ESM imports and exports. Again, it's purely a hand-off to make everyone else's lives easier. The (main?) reason a lot of browser modules are taking advantage of the ... I highly doubt this is still the case for Webpack, but it is still the case with Lastly, to help out Windows users specifically, I'd look at using an It's slightly more work at the start, but uses less resources while watching. |
I realize that's probably still not enough to sway your position, haha, but I've never been in a position to influence that kind of decision. Instead, I've always had to accomodate the trends. Supporting a bunch of different keys is definitely a little more awkward, for now, but we're also in an awkward transitional stage. |
Sorry, I got confused by this thread—just realized that in this particular case the build was failing precisely because of ESM and not because of some other ES6 feature (which is usually the case). I agree the |
Haha no problem. Not entirely familiar with CRA, sorry to say, so I was also taking a stab at the likely culprit. |
I'm using CRA that is 1 week old, so I'm pretty sure I'm on a very latest version of it. I still get this error. Without asking me to read those 1000 comments (I did try that too, but it says somewhere it should work and then there is follow up issue which is open), do you know if there is a solution? |
This is a weird one, and I bet this isn't the right place for it. Running
yarn build
in my create-react-app project, it fails with:Following the link, it recommends filing an issue, even though I don't see why this isn't working.
My dependencies are:
The text was updated successfully, but these errors were encountered: