Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

运行时依赖报错 #4

Open
XRFate opened this issue Nov 22, 2024 · 0 comments
Open

运行时依赖报错 #4

XRFate opened this issue Nov 22, 2024 · 0 comments

Comments

@XRFate
Copy link

XRFate commented Nov 22, 2024

Error: Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: [BABEL] C:\Users\Administrator\Project\taro_mini_prog\taro-react-tailwind-vscode-template-main\src\pages\index\index.tsx: Cannot find module '@babel/preset-react'

以上是错误信息
以下是包安装信息

dependencies:
+ @babel/runtime 7.26.0
+ @tarojs/components 4.0.7
+ @tarojs/helper 4.0.7
+ @tarojs/plugin-framework-react 4.0.7
+ @tarojs/plugin-platform-alipay 4.0.7
+ @tarojs/plugin-platform-h5 4.0.7
+ @tarojs/plugin-platform-jd 4.0.7
+ @tarojs/plugin-platform-qq 4.0.7
+ @tarojs/plugin-platform-swan 4.0.7
+ @tarojs/plugin-platform-tt 4.0.7
+ @tarojs/plugin-platform-weapp 4.0.7
+ @tarojs/react 4.0.7
+ @tarojs/runtime 4.0.7
+ @tarojs/shared 4.0.7
+ @tarojs/taro 4.0.7
+ clsx 2.1.1
+ react 18.3.1
+ react-dom 18.3.1

devDependencies:
+ @babel/core 7.26.0
+ @babel/preset-react 7.25.9
+ @pmmmwh/react-refresh-webpack-plugin 0.5.15
+ @tarojs/cli 4.0.7
+ @tarojs/webpack5-runner 4.0.7
+ @types/node 22.9.0
+ @types/react 18.3.12
+ @types/webpack-env 1.18.5
+ @typescript-eslint/eslint-plugin 8.14.0
+ @typescript-eslint/parser 8.14.0
+ babel-preset-taro 4.0.7
+ eslint 8.41.0
+ eslint-config-taro 4.0.7
+ eslint-plugin-import 2.31.0
+ eslint-plugin-react 7.37.2
+ eslint-plugin-react-hooks 4.6.2
+ postcss 8.4.49
+ postcss-rem-to-responsive-pixel 6.0.2
+ react-refresh 0.14.2
+ stylelint 16.10.0
+ tailwindcss 3.4.15
+ ts-node 10.9.2
+ tsconfig-paths-webpack-plugin 4.2.0
+ typescript 5.6.3
+ weapp-ide-cli 2.0.6
+ weapp-tailwindcss 3.7.0
+ webpack 5.96.1

> taro-react-tailwind-vscode-template@1.0.0 postinstall C:\Users\Administrator\Project\taro_mini_prog\taro-react-tailwind-vscode-template-main
> weapp-tw patch
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant