Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Module not found: Can't resolve './immer.cjs.development.js' #30

Closed
mikepage opened this issue Oct 20, 2020 · 1 comment
Closed

Module not found: Can't resolve './immer.cjs.development.js' #30

mikepage opened this issue Oct 20, 2020 · 1 comment

Comments

@mikepage
Copy link

Installing with create-react-app template redux and yarn returns a dependency issue.

Failed to compile.

./node_modules/immer/dist/index.js
Module not found: Can't resolve './immer.cjs.development.js

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template-redux...

yarn add v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "win32" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@2.1.2: The platform "win32" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 25 new dependencies.
info Direct dependencies
├─ cra-template-redux@1.0.2
├─ react-dom@17.0.0
├─ react-scripts@3.4.4
└─ react@17.0.0
info All dependencies
├─ @babel/plugin-syntax-typescript@7.12.1
├─ @babel/plugin-transform-flow-strip-types@7.9.0
├─ @babel/plugin-transform-runtime@7.9.0
├─ @babel/plugin-transform-typescript@7.12.1
├─ @babel/preset-typescript@7.9.0
├─ adjust-sourcemap-loader@3.0.0
├─ babel-preset-react-app@9.1.2
├─ cra-template-redux@1.0.2
├─ eslint-config-react-app@5.2.1
├─ html-entities@1.3.1
├─ loglevel@1.7.0
├─ portfinder@1.0.28
├─ react-dev-utils@10.2.1
├─ react-dom@17.0.0
├─ react-error-overlay@6.0.7
├─ react-scripts@3.4.4
├─ react@17.0.0
├─ regex-parser@2.2.11
├─ resolve-url-loader@3.1.2
├─ scheduler@0.20.0
├─ serialize-javascript@4.0.0
├─ sockjs@0.3.20
├─ spdy@4.0.2
├─ terser-webpack-plugin@2.3.8
└─ webpack-dev-server@3.11.0
Done in 15.82s.

Initialized a git repository.

Installing template dependencies using yarnpkg...
yarn add v1.22.5
[1/4] Resolving packages...
warning @testing-library/react > @types/testing-library__react > @types/testing-library__dom@7.5.0: This is a stub types definition. testing-library__dom provides its own type definitions, so you do not need this installed.
[2/4] Fetching packages...
info fsevents@2.1.2: The platform "win32" is incompatible with this module.
info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.12: The platform "win32" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "react-scripts > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " > @testing-library/user-event@7.2.1" has unmet peer dependency "@testing-library/dom@>=5".
warning " > react-redux@7.2.1" has incorrect peer dependency "react@^16.8.3".
warning " > react-redux@7.2.1" has unmet peer dependency "redux@^2.0.0 || ^3.0.0 || ^4.0.0-0".
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 31 new dependencies.
info Direct dependencies
├─ @reduxjs/toolkit@1.4.0
├─ @testing-library/jest-dom@4.2.4
├─ @testing-library/react@9.5.0
├─ @testing-library/user-event@7.2.1
├─ react-dom@17.0.0
├─ react-redux@7.2.1
└─ react@17.0.0
info All dependencies
├─ @babel/runtime-corejs3@7.12.1
├─ @reduxjs/toolkit@1.4.0
├─ @sheerun/mutationobserver-shim@0.3.3
├─ @testing-library/dom@6.16.0
├─ @testing-library/jest-dom@4.2.4
├─ @testing-library/react@9.5.0
├─ @testing-library/user-event@7.2.1
├─ @types/aria-query@4.2.0
├─ @types/prop-types@15.7.3
├─ @types/react-dom@16.9.8
├─ @types/react@16.9.53
├─ @types/testing-library__dom@7.5.0
├─ @types/testing-library__react@9.1.3
├─ aria-query@4.2.2
├─ css.escape@1.5.1
├─ csstype@3.0.3
├─ dom-accessibility-api@0.3.0
├─ hoist-non-react-statics@3.3.2
├─ immer@7.0.13
├─ lz-string@1.4.4
├─ min-indent@1.0.1
├─ react-dom@17.0.0
├─ react-redux@7.2.1
├─ react@17.0.0
├─ redent@3.0.0
├─ redux-thunk@2.3.0
├─ redux@4.0.5
├─ reselect@4.0.0
├─ strip-indent@3.0.0
├─ symbol-observable@1.2.0
└─ wait-for-expect@3.0.2
Done in 17.25s.
{
  "name": "create-react-app-redux",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@reduxjs/toolkit": "^1.1.0",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.3.2",
    "@testing-library/user-event": "^7.1.2",
    "react": "^17.0.0",
    "react-dom": "^17.0.0",
    "react-redux": "^7.1.3",
    "react-scripts": "3.4.4"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}
@markerikson
Copy link
Contributor

Yep, as you noticed, this appears to be a problem on Immer's side. They published a slew of new versions today, and for some reason some of them don't have the actual build contents inside :(

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

No branches or pull requests

2 participants