当前位置: 首页 > 工具软件 > getoptions > 使用案例 >

TypeError: loaderContext.getOptions is not a function

任繁
2023-12-01

环境:

  1. vue-cli: 5.0.4
  2. vue: 3.2.13
  3. webpack: 5.72
  4. ts-loader: 9.x

electron-builder运行报错:

npm run electron:serve

TypeError: loaderContext.getOptions is not a function

解决:
方式1: vue-cli 降到4.x版本
方式2:使用ts-loader@~8.2.0

npm i -D ts-loader@~8.2.0
 类似资料:

相关阅读

相关文章

相关问答