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

Issue with CRA5 (webpack 5) #29

Open
perispomenon opened this issue Feb 14, 2022 · 0 comments
Open

Issue with CRA5 (webpack 5) #29

perispomenon opened this issue Feb 14, 2022 · 0 comments

Comments

@perispomenon
Copy link

perispomenon commented Feb 14, 2022

Hello. Seems it's not possible to do code-splitting with create-react-app 5.

My craco.config.js is:
module.exports = { plugins: [{ plugin: require('craco-cesium')({ loadPartially: true }) }] };
Craco version: "@craco/craco": "^6.4.3"

When I run craco start, I get an error:
$ craco start Failed to compile. Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. configuration.node has an unknown property 'fs'. These properties are valid: object { __dirname?, __filename?, global? } -> Options object for node compatibility features.

Should it work? If no, are there any plans to upgrade this nice plugin to be compatible with CRA5?

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