Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Production build is failing #1

Open
Danielv123 opened this issue Sep 6, 2020 · 0 comments
Open

Production build is failing #1

Danielv123 opened this issue Sep 6, 2020 · 0 comments

Comments

@Danielv123
Copy link
Member

Error message in console:

https://i.imgur.com/fNt8xz2.png

This has to do with how react-scripts treats commonjs modules vs esm modules. The library from the node app is written with commonjs, and while importing it works fine in the development mode it breaks when running a build.

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

No branches or pull requests

1 participant