Comments (2)
alias path.join 改为 path.resolve 之后出现了新的问题
[mor] ✖ 编译 ../node_modules/.pnpm/@vant[email protected]/node_modules/@vant/weapp/lib/field/index.js 失败:
=> Module not found: Error: Can't resolve './index.axml' in '/Users/u/Desktop/project/node_modules/.pnpm/@vant[email protected]/node_modules/@vant/weapp/lib/field'
from morjs.
可以按照如下步骤尝试:
- 确保 MorJS 相关依赖为最新版本
- 在转 Web 的配置项中开启
processNodeModules
配置,确保@vant/weapp
可以正确编译,文档可参考: https://mor.eleme.io/guides/basic/config/#processnodemodules---%E6%98%AF%E5%90%A6%E5%A4%84%E7%90%86-node_modules - 去掉 alias 配置,并在项目中直接按照实际路径引用,比如: "@vant/weapp/popup/index" 或 "@vant/weapp/lib/popup/index"
from morjs.
Related Issues (20)
- 使用morjs后 vant-weapp popup 无遮罩,close-on-click-overlay 不生效 HOT 5
- tdesign-miniprogram如何多端转换 HOT 6
- 微信小程序转头条小程序 nextTick 报错 HOT 1
- this.selectComponent is not a function HOT 3
- Cannot read properties of undefined (reading 'ALIPAY') HOT 2
- MorJS 和 uni-app 相比能说下它的优势是那里,或者它改进了什么? HOT 1
- npm install时无法搜索到最新的tag,能否做下npm publish
- morjs也是饿了吗的多端编译框架,这个编译后的产物,引入UI组件
- 地图API问题 HOT 1
- 这个和uniapp有什么区别么 HOT 1
- src目录增加utils文件夹,编译后不见了, HOT 4
- vant 打包下 wxs 依赖缺失问题 HOT 1
- After initializing the project, running dev throws an error. HOT 2
- es6转换问题 HOT 1
- 微信DSL编译产出支付宝小程序配置不生效问题 HOT 1
- 使用了微信小程序比较流行的日历组件,但转换过程却不行。 HOT 1
- 使用 vant 组件会报错。 HOT 1
- Windows下,编译路径获取错误
- Mac 13.4 `pnpm dev` failed. HOT 1
- 安装依赖并构建报错 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morjs.