错误的NPM IS核模块在接下来的JS中

发布于 2025-02-06 03:28:01 字数 444 浏览 1 评论 0原文

几天后,当我启动项目时,这个错误出现了:

./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[2]!./src/styles/globals.css

Error: Cannot find module 'C:\project_is_here\node_modules\is-core-module\index.js'

我不知道该如何解决,有人可以帮助我吗? ps:就像未创建 /尚未删除IS核模块中的索引文件,也不要创建另一个

After a couple days, when i start my project this error appears:

./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[1]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[3].oneOf[8].use[2]!./src/styles/globals.css

Error: Cannot find module 'C:\project_is_here\node_modules\is-core-module\index.js'

I don't know how fix that, someone can help me?
PS: is like the index file in is-core-module is not created / has been deleted, and don't create another

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

苏佲洛 2025-02-13 03:28:03

我遇到了同样的问题,这对我有用:

  1. 从您的 root Project Directory 中删除:
    • .next(文件夹)
    • node_modules(文件夹)和package-lock.json(file)
  2. 在终端npm cache清洁 -强制命令。
  3. 运行NPM install命令
  4. 运行npm Run Dev命令

I had the same issue and this works for me:

  1. Delete from Your root project directory:
    • .next (folder)
    • node_modules (folder) and package-lock.json (file)
  2. run in terminal npm cache clean --force command.
  3. run npm install command
  4. run npm run dev command
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文