You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm suddenly having the following error message when building the app in production:
"Module not found: Error: Can't resolve '@primer/primitives' in '/usr/src/app/node_modules/@primer/react/lib-esm'"
It was working normally, and after a minor change it stoped working. I reverted the commit and it still does not work.
Reproduction steps
1- Environment:
Node version: 18.14.0
react: 18
@primer/octicons-react: ^17.11.1,
@primer/react: ^35.19.0
2- According to yarn.lock:
@primer/primitives@^7.11.11
3- Build with command:
react-scripts build
4- The app is being build in a Docker container running node:18-alpine
Expected behavior
Successful build.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
Not sure if it's related, but there seems to be an issue introduced in v7.17.0 likely by #874, the npm package doesn't include dist/js anymore and I'm getting these errors in my code:
error TS2307: Cannot find module '@primer/primitives' or its corresponding type declarations.
Describe the bug
I'm suddenly having the following error message when building the app in production:
"Module not found: Error: Can't resolve '@primer/primitives' in '/usr/src/app/node_modules/@primer/react/lib-esm'"
It was working normally, and after a minor change it stoped working. I reverted the commit and it still does not work.
Reproduction steps
1- Environment: Node version: 18.14.0 react: 18 @primer/octicons-react: ^17.11.1, @primer/react: ^35.19.0 2- According to yarn.lock: @primer/primitives@^7.11.11 3- Build with command: react-scripts build 4- The app is being build in a Docker container running node:18-alpine
Expected behavior
Screenshots
No response
The text was updated successfully, but these errors were encountered: