Open ochmanski opened 3 years ago
Dynamic imports are not working with any version of acorn specified in resolutions field in package.json.
acorn
resolutions
package.json
Yes, my yarn version is 1.22.5.
1.22.5
I think every possible one.
Environment Info: current version of create-react-app: 4.0.2 running from /Users/ochdev/.npm/_npx/c67e74de0542c87c/node_modules/create-react-app System: OS: macOS 11.1 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Binaries: Node: 15.8.0 - ~/.nvm/versions/node/v15.8.0/bin/node Yarn: 1.22.5 - /usr/local/bin/yarn npm: 7.5.1 - ~/.nvm/versions/node/v15.8.0/bin/npm Browsers: Chrome: 88.0.4324.146 Edge: Not Found Firefox: 84.0 Safari: 14.0.2 npmPackages: react: ^17.0.1 => 17.0.1 react-dom: ^17.0.1 => 17.0.1 react-scripts: 4.0.2 => 4.0.2 npmGlobalPackages: create-react-app: Not Found
(Write your steps here:)
create-react-app
yarn
npm i
yarn start
npm run start
localhost:3000
Dynamic imports should work as expected.
https://github.com/ochmanski/cra-dynamic-import-acorn-res
Instructions are the same as cloning every new CRA project.
$ git clone git@github.com:ochmanski/cra-dynamic-import-acorn-res.git $ yarn $ yarn start
$ git clone git@github.com:ochmanski/cra-dynamic-import-acorn-res.git $ npm i $ npm run start
Any progress on this issue and i can replicate the same.
Describe the bug
Dynamic imports are not working with any version of
acorn
specified inresolutions
field inpackage.json
.Did you try recovering your dependencies?
Yes, my yarn version is
1.22.5
.Which terms did you search for in User Guide?
I think every possible one.
Environment
Steps to reproduce
(Write your steps here:)
create-react-app
acorn
toresolutions
field inpackage.json
yarn
ornpm i
yarn start
ornpm run start
localhost:3000
and see crashed appExpected behavior
Dynamic imports should work as expected.
Actual behavior
Reproducible demo
https://github.com/ochmanski/cra-dynamic-import-acorn-res
Instructions are the same as cloning every new CRA project.