miniprogram-to-uniapp icon indicating copy to clipboard operation
miniprogram-to-uniapp copied to clipboard

Cannot find module '../../src/page/script/vantComponent/VantComponent-transformer'

Open bruce-botong opened this issue 1 year ago • 1 comments

Error: Cannot find module '../../src/page/script/vantComponent/VantComponent-transformer' Require stack:

  • /nodewww/zhibo2/miniprogram-to-uniapp/src/page/index.js
  • /nodewww/zhibo2/miniprogram-to-uniapp/src/project/projectHandle.js
  • /nodewww/zhibo2/miniprogram-to-uniapp/index.js
  • /nodewww/zhibo2/miniprogram-to-uniapp/bin/wtu 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. (/nodewww/zhibo2/miniprogram-to-uniapp/src/page/index.js:39:39) 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: [ '/nodewww/zhibo2/miniprogram-to-uniapp/src/page/index.js', '/nodewww/zhibo2/miniprogram-to-uniapp/src/project/projectHandle.js', '/nodewww/zhibo2/miniprogram-to-uniapp/index.js', '/nodewww/zhibo2/miniprogram-to-uniapp/bin/wtu' ] } 截图 2023-12-21 10-09-25

bruce-botong avatar Dec 21 '23 02:12 bruce-botong

文件名大小写的问题。代码里面写的大写,文件名是小写 代码里面引入是这样的大写:page/script/vantComponent/VantComponent-transformer 实际文件名为 src/page/script/vantComponent/vantComponent-transformer

vantComponent-transformer.js 文件名大小写有问题。本地直接改代码就可以执行了

xinuxZ avatar Jun 20 '24 02:06 xinuxZ