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

Can't resolve 'codemirror5/addon/display/placeholder' on v4.24.2 #20299

Closed
marcogermani87 opened this issue May 11, 2024 · 2 comments
Closed
Labels
flag: invalid template Automation Flag to handle invalid bug report templates

Comments

@marcogermani87
Copy link

marcogermani87 commented May 11, 2024

Bug report

Required System information

  • Node.js version: 18.17.1
  • NPM version: 10.7.0
  • Strapi version: 4.24.2
  • Database: 8.0.36
  • Operating system: Ubuntu 22.04 LTS (WSL 2)
  • Is your project Javascript or Typescript: JS

Describe the bug

Upgrade from v4.24.0 to 4.24.2:

$ bun run build
strapi build
[WARN] [@strapi/strapi]: The NODE_ENV is not set to production. This may result in unexpected behavior.
⠋ Building build context
[INFO] Including the following ENV variables as part of the JS bundle:
- ADMIN_PATH
- STRAPI_ADMIN_BACKEND_URL
- STRAPI_TELEMETRY_DISABLED
✔ Building build context (56ms)
⠋ Building admin panel
⠏ Building admin panel[ERROR] Module not found: Error: Can't resolve 'codemirror5/addon/display/placeholder' in '/home/xxxxxxx/project/backend/node_modules/@strapi/admin/dist/admin'
✖ Building admin panel
[ERROR] There seems to be an unexpected error, try again with --debug for more information

error: script "build" exited with code 1

@marcogermani87
Copy link
Author

Fixed with:

bun i codemirror

or

npm i codemirror

@marcogermani87 marcogermani87 changed the title Can't resolve Can't resolve 'codemirror5/addon/display/placeholder' - Strapi v4.24.2 May 11, 2024
@marcogermani87 marcogermani87 changed the title Can't resolve 'codemirror5/addon/display/placeholder' - Strapi v4.24.2 Can't resolve 'codemirror5/addon/display/placeholder' on v4.24.2 May 11, 2024
@joshuaellis joshuaellis added the flag: invalid template Automation Flag to handle invalid bug report templates label May 14, 2024
Copy link
Contributor

This is a templated message

Hello @marcogermani87,

We ask that you please follow the issue template.
A proper issue submission let's us better understand the origin of your bug and therefore help you. We will reopen your issue when we receive the issue following the template guidelines and properly fill out the template. You can see the template guidelines for bug reports here.

Please update the issue with the template and we can reopen this report.

Thank you.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flag: invalid template Automation Flag to handle invalid bug report templates
Projects
Status: Done
Development

No branches or pull requests

2 participants