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

可以请教下作者NodeJS版本么?试着本地跑不起来QAQ #23

Open
EternalDung opened this issue May 15, 2024 · 1 comment · May be fixed by #24
Open

可以请教下作者NodeJS版本么?试着本地跑不起来QAQ #23

EternalDung opened this issue May 15, 2024 · 1 comment · May be fixed by #24

Comments

@EternalDung
Copy link

EternalDung commented May 15, 2024

试着在本地跑了一下,node从18换到v16.20.2,还一直报错,参考umi的官方文档和咨询AI,解决了这一处又报另外一个加载器错误。
`× Webpack
Compiled with some errors in 9.50s

ERROR Failed to compile with 1 errors 21:41:17

error in ./node_modules/@tanstack/virtual-core/dist/esm/index.js

Module parse failed: Unexpected token (218:51)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| this.notify = (force, sync) => {
| var _a, _b;

  const { startIndex, endIndex } = this.range ?? {

| startIndex: void 0,
| endIndex: void 0

@ ./node_modules/@tanstack/react-virtual/dist/esm/index.js 3:0-164 4:0-39 4:0-39 21:14-25 34:4-22 35:4-24 36:16-29 43:24-41 44:26-45 45:16-28
@ ./node_modules/@headlessui/react/dist/components/combobox/combobox.js
@ ./node_modules/@headlessui/react/dist/headlessui.esm.js
@ ./node_modules/react-cmdk/dist/components/CommandPalette.js
@ ./node_modules/react-cmdk/dist/index.js
@ ./src/layouts/index.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./node_modules/@umijs/preset-built-in/bundled/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/.umi/umi.ts

ERROR in ./node_modules/@tanstack/virtual-core/dist/esm/index.js 218:51
Module parse failed: Unexpected token (218:51)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| this.notify = (force, sync) => {
| var _a, _b;

  const { startIndex, endIndex } = this.range ?? {

| startIndex: void 0,
| endIndex: void 0
@ ./node_modules/@tanstack/react-virtual/dist/esm/index.js 3:0-164 4:0-39 4:0-39 21:14-25 34:4-22 35:4-24 36:16-29 43:24-41 44:26-45 45:16-28
@ ./node_modules/@headlessui/react/dist/components/combobox/combobox.js
@ ./node_modules/@headlessui/react/dist/headlessui.esm.js
@ ./node_modules/react-cmdk/dist/components/CommandPalette.js
@ ./node_modules/react-cmdk/dist/index.js
@ ./src/layouts/index.tsx
@ ./src/.umi/core/routes.ts
@ ./src/.umi/umi.ts
@ multi ./node_modules/@umijs/preset-built-in/bundled/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/.umi/umi.ts`

@EternalDung EternalDung changed the title 可以请教下作者的NodeJS版本么? 可以请教下作者的NodeJS版本么?试着本地跑不起来QAQ May 15, 2024
@EternalDung EternalDung changed the title 可以请教下作者的NodeJS版本么?试着本地跑不起来QAQ 可以请教下作者NodeJS版本么?试着本地跑不起来QAQ May 15, 2024
@NriotHrreion NriotHrreion linked a pull request Sep 27, 2024 that will close this issue
4 tasks
@NriotHrreion
Copy link

原因是部分依赖版本过时,已经在 #24 修复了。现在用Node.js 20就可以运行这个项目,不用回退版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants