wechat-miniprogram / glass-easel

Multiple-backend component-based JavaScript framework
MIT License
243 stars 34 forks source link

glass-easel-miniprogram-template v0.3.0 运行报错 Cannot find module './helpers' #134

Closed DA-SHUIBI closed 9 months ago

DA-SHUIBI commented 9 months ago

npm install 执行完成无报错,但是运行 npm run dev 时报错,在v0.2.1版本中正常

[webpack-cli] Failed to load '/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/webpack.config.js' config
[webpack-cli] Error: Cannot find module './helpers'
Require stack:
- /Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/glass-easel-miniprogram-webpack-plugin/index.js
- /Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/webpack.config.js
- /Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack-cli/lib/webpack-cli.js
- /Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack-cli/lib/bootstrap.js
- /Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack-cli/bin/cli.js
- /Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack/bin/webpack.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
    at Module._load (node:internal/modules/cjs/loader:922:27)
    at Module.require (node:internal/modules/cjs/loader:1143:19)
    at require (node:internal/modules/cjs/helpers:121:18)
    at Object.<anonymous> (/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/glass-easel-miniprogram-webpack-plugin/index.js:41:19)
    at Module._compile (node:internal/modules/cjs/loader:1256:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Module._load (node:internal/modules/cjs/loader:960:12)
    at Module.require (node:internal/modules/cjs/loader:1143:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/glass-easel-miniprogram-webpack-plugin/index.js',
    '/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/webpack.config.js',
    '/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack-cli/lib/webpack-cli.js',
    '/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack-cli/lib/bootstrap.js',
    '/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack-cli/bin/cli.js',
    '/Users/dashuibi/Project/实验室/glass-easel-miniprogram-template/node_modules/webpack/bin/webpack.js'
  ]
}
LastLeaf commented 9 months ago

抱歉,马上发 patch 版本修复。

原因是 webpack-plugin 改成了 TypeScript 写的,但是发布没处理好。

DA-SHUIBI commented 9 months ago

抱歉,马上发 patch 版本修复。

原因是 webpack-plugin 改成了 TypeScript 写的,但是发布没处理好。

话说什么时候支持完整的小程序代码运行?现在还没办法调用wx的api

LastLeaf commented 9 months ago

published with e0521ba1bc40d8bd8576b3d64d3ab9ea8a061f53

LastLeaf commented 9 months ago

抱歉,马上发 patch 版本修复。 原因是 webpack-plugin 改成了 TypeScript 写的,但是发布没处理好。

话说什么时候支持完整的小程序代码运行?现在还没办法调用wx的api

glass-easel 本身并不对标完整的小程序环境。

https://github.com/wechat-miniprogram/glass-easel/blob/master/README-zh_CN.md#%E8%BF%99%E4%B8%AA%E6%A8%A1%E5%9D%97%E6%9C%AA%E5%8C%85%E5%90%AB%E5%B0%8F%E7%A8%8B%E5%BA%8F%E7%9A%84%E7%BB%84%E4%BB%B6%E5%AE%9E%E7%8E%B0

未来会做一些辅助模块。但我们目前还来不及做这方面的工作。

如果你是想要一个 web/小程序 的统一接口,可以考虑移植 kbone 的这个:

https://github.com/Tencent/kbone/tree/develop/packages/miniprogram-render/src/bom