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

Module not found error when running with create-react-app created React app #199

Open
wasd0109 opened this issue Nov 26, 2024 · 1 comment

Comments

@wasd0109
Copy link

wasd0109 commented Nov 26, 2024

Describe the bug
When trying to update @formio/js version to the latest, we encountered a bunch of 'Cannot find module' and 'Module not found' error

Version/Branch
"@formio/bootstrap": "^3.0.0-rc.41", "@formio/core": "^2.2.2-rc.5", "@formio/js": "^5.0.0-rc.76", "@formio/react": "^6.0.0-rc.1", "react-scripts": "4.0.1",

To Reproduce
Steps to reproduce the behavior:

  1. Create new create-react-app application with Javascript selected
  2. install the dependencies listed above
  3. add following code in App.js
    import { Evaluator } from '@formio/core/utils';console.log(Evaluator);
  4. Error occur

Expected behavior
No error

Screenshots
Screenshot 2024-11-26 at 13 40 46

Additional context

We tried with a brand new project and the same error occurred so I believe that it wasn't any config from our app causing this issue. We tried isolating the issue and found it to be independent to node version but could be caused by create-react-app

node version / bundler | Vite | create react app

v16.20.2 | no issue | error
v20.12.2 | no issue | error

@wasd0109 wasd0109 changed the title Module not found error when running with create-react-app created React SPA Module not found error when running with create-react-app created React app Nov 26, 2024
@wasd0109
Copy link
Author

wasd0109 commented Nov 26, 2024

Further testing with react-script: v5.0.1 show no issue, please let me know if this is an intended change

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