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

taro4.0+ 使用 webpack 编译为什么要依赖 eslint? #16891

Closed
tclxshunquan-wang opened this issue Nov 20, 2024 · 0 comments
Closed

taro4.0+ 使用 webpack 编译为什么要依赖 eslint? #16891

tclxshunquan-wang opened this issue Nov 20, 2024 · 0 comments

Comments

@tclxshunquan-wang
Copy link

相关平台

微信小程序

小程序基础库: 3.6.5
使用框架: React

代码仓库

https://github.com/Agile-Missile/taro-react-starter/tree/main

复现步骤

eslint 版本
"eslint": "9.15.0",
"eslint-config-taro": "4.0.7",
"eslint-plugin-import": "^2.12.0",
"eslint-plugin-react": "^7.8.2",
"eslint-plugin-react-hooks": "^4.2.0",

执行dev:weapp,生成的node_modules_taro_weapp_prebundle_tarojs_taro_js.js中,@tarojs_taro.core.js的 path 是有问题的,
image

期望结果

正常编译

实际结果

编译错误

环境信息

👽 Taro v4.0.7


  Taro CLI 4.0.7 environment info:
    System:
      OS: macOS 15.0.1
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 20.13.1 - /usr/local/node-v20.13.1/bin/node
      Yarn: 4.3.1 - /opt/homebrew/bin/yarn
      npm: 10.5.2 - /usr/local/node-v20.13.1/bin/npm
    npmPackages:
      @tarojs/cli: 4.0.7 => 4.0.7 
      @tarojs/components: 4.0.7 => 4.0.7 
      @tarojs/helper: 4.0.7 => 4.0.7 
      @tarojs/plugin-framework-react: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-alipay: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-h5: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-jd: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-qq: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-swan: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-tt: 4.0.7 => 4.0.7 
      @tarojs/plugin-platform-weapp: 4.0.7 => 4.0.7 
      @tarojs/react: 4.0.7 => 4.0.7 
      @tarojs/runtime: 4.0.7 => 4.0.7 
      @tarojs/shared: 4.0.7 => 4.0.7 
      @tarojs/taro: 4.0.7 => 4.0.7 
      @tarojs/taro-loader: 4.0.7 => 4.0.7 
      @tarojs/webpack5-runner: 4.0.7 => 4.0.7 
      babel-preset-taro: 4.0.7 => 4.0.7 
      eslint-config-taro: 4.0.7 => 4.0.7 
      react: ^18.0.0 => 18.3.1 
    npmGlobalPackages:
      typescript: 5.6.3
@tclxshunquan-wang tclxshunquan-wang changed the title taro 使用 webpack 编译为什么要依赖 eslint? taro4.0+ 使用 webpack 编译为什么要依赖 eslint? Nov 20, 2024
This was referenced Nov 23, 2024
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

No branches or pull requests

1 participant