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

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

Open
bruce-botong opened this issue Dec 21, 2023 · 1 comment

Comments

@bruce-botong
Copy link

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
@xinuxZ
Copy link

xinuxZ commented Jun 20, 2024

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

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

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

2 participants