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

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. #13558

Closed
qqwwaaa opened this issue Apr 3, 2023 · 1 comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 to be closed V-3 Version - 3.x

Comments

@qqwwaaa
Copy link

qqwwaaa commented Apr 3, 2023

相关平台

H5

浏览器版本: Chrome 62
使用框架: React

复现步骤

taro build --type h5报错,而且我并没有配置什么.map$

期望结果

成功编译

实际结果

编译失败

环境信息

Taro CLI 3.6.2 environment info:
    System:

      OS: Windows 10
    Binaries:
      Node: 16.20.0 - D:\node.EXE
      Yarn: 1.22.19 - C:\Users\25916\AppData\Roaming\npm\yarn.CMD
      npm: 8.19.4 - D:\npm.CMD

补充信息

WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.resolve.alias['.map$'] should be a string.
    -> New request
    at webpack (D:\前端学习资料\taroify-demo\node_modules\webpack\lib\webpack.js:31:9)
    at D:\前端学习资料\taroify-demo\node_modules@tarojs\webpack-runner\src\index.ts:36:20
    at Generator.next ()
    at fulfilled (D:\前端学习资料\taroify-demo\node_modules@tarojs\webpack-runner\dist\index.js:5:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Apr 3, 2023
@ZakaryCode ZakaryCode moved this to Padding in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
@ZakaryCode
Copy link
Contributor

旧版本问题,可以自行升级

@github-project-automation github-project-automation bot moved this from Padding to Done in H5 Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 to be closed V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

2 participants