Code Monkey home page Code Monkey logo

Comments (10)

ChanWahFung avatar ChanWahFung commented on May 19, 2024

from nuxt-juejin-project.

lvelve66 avatar lvelve66 commented on May 19, 2024

大佬这个项目启动不起来是什么原因呢?

from nuxt-juejin-project.

ChanWahFung avatar ChanWahFung commented on May 19, 2024

大佬这个项目启动不起来是什么原因呢?

用 apinew 分支,npm run dev

from nuxt-juejin-project.

lvelve66 avatar lvelve66 commented on May 19, 2024

使用的apinew 分支,报错
ERROR in ./.nuxt/client.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] D:\my\study\vuestudy\nuxt\nuxt-juejin-project.nuxt\client.js: Cannot find module 'D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\compat-data\data\corejs3-shipped-proposals' (While processing: "D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@nuxt\babel-preset-app\src\index.js")
at createEsmNotFoundErr (internal/modules/cjs/loader.js:907:15)
at finalizeEsmResolution (internal/modules/cjs/loader.js:900:15)
at resolveExports (internal/modules/cjs/loader.js:432:14)
at Function.Module._findPath (internal/modules/cjs/loader.js:472:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js:10:55)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\preset-env\lib\index.js:29:44)
friendly-errors 10:04:43
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js

解决了,下载了下缺少的文件调整了下版本

from nuxt-juejin-project.

Blizzard-liu avatar Blizzard-liu commented on May 19, 2024

从入门到放弃

from nuxt-juejin-project.

tangjian1891 avatar tangjian1891 commented on May 19, 2024

使用的apinew 分支,报错
ERROR in ./.nuxt/client.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] D:\my\study\vuestudy\nuxt\nuxt-juejin-project.nuxt\client.js: Cannot find module 'D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\compat-data\data\corejs3-shipped-proposals' (While processing: "D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@nuxt\babel-preset-app\src\index.js")
at createEsmNotFoundErr (internal/modules/cjs/loader.js:907:15)
at finalizeEsmResolution (internal/modules/cjs/loader.js:900:15)
at resolveExports (internal/modules/cjs/loader.js:432:14)
at Function.Module._findPath (internal/modules/cjs/loader.js:472:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js:10:55)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\preset-env\lib\index.js:29:44)
friendly-errors 10:04:43
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js

解决了,下载了下缺少的文件调整了下版本

请问是调整了哪个版本,我现在跑起来也是有这个问题!

from nuxt-juejin-project.

chencld avatar chencld commented on May 19, 2024

"devDependencies" 增加 "@babel/preset-env": "7.5.5",
"@babel/compat-data": "7.9.0",
"babel-loader": "^8.1.0",

from nuxt-juejin-project.

tangjian1891 avatar tangjian1891 commented on May 19, 2024

使用的apinew 分支,报错
ERROR in ./.nuxt/client.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] D:\my\study\vuestudy\nuxt\nuxt-juejin-project.nuxt\client.js: Cannot find module 'D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\compat-data\data\corejs3-shipped-proposals' (While processing: "D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@nuxt\babel-preset-app\src\index.js")
at createEsmNotFoundErr (internal/modules/cjs/loader.js:907:15)
at finalizeEsmResolution (internal/modules/cjs/loader.js:900:15)
at resolveExports (internal/modules/cjs/loader.js:432:14)
at Function.Module._findPath (internal/modules/cjs/loader.js:472:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:867:27)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\preset-env\lib\polyfills\corejs3\usage-plugin.js:10:55)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object. (D:\my\study\vuestudy\nuxt\nuxt-juejin-project\node_modules@babel\preset-env\lib\index.js:29:44)
friendly-errors 10:04:43
@ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&name=client&path=/__webpack_hmr/client ./.nuxt/client.js

解决了,下载了下缺少的文件调整了下版本

请问是调整了哪个版本,我现在跑起来也是有这个问题!

npm i @babel/[email protected] -D 可完美解决,亲测有效!

from nuxt-juejin-project.

Dcx199302 avatar Dcx199302 commented on May 19, 2024

可能还得加上这个~
npm install --save-dev node-sass sass-loader

from nuxt-juejin-project.

vdbvxcbcb avatar vdbvxcbcb commented on May 19, 2024

还要把 sass 版本降级,否则一堆 deprecated 警告,参考:https://www.astralweb.com.tw/resolving-sass-deprecation-warning/

from nuxt-juejin-project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.