Comments (7)
我也遇到这个问题,项目源码是https://github.com/charlescui/weex-baji
第一步,我通过weexpack init Hweex创建了一个新项目Hweex。
第二步,我把weex-baji中的modules、model、images文件夹和index.we文件copy到新项目的src目录下。
第三步,我在新项目Hweex下执行weexpack run android,报错得到一个 Cannot resolve module underscore和 Cannot resolve module '@weex-module/stream' in E:\backend\Hweex\src\model
@ ./src/model/channel.js 6:13-43
第四步,我在Hweex下执行npm install underscore,然后执行weexpack run android
依然得到ERROR in ./src/model/channel.js
Module not found: Error: Cannot resolve module '@weex-module/stream' in E:\backend\Hweex\src\model
@ ./src/model/channel.js 6:13-43
我该怎么解决?
from weexone.
@Rowandjj 提示什么错误
from weexone.
@dodola can not resolve module xxx. 我问过勾股了,他说目前还不支持js中引用。但是很奇怪,我将你的代码放到playground中执行,是可以的。
from weexone.
@Rowandjj 他可能理解错你的意思了
from weexone.
@Rowandjj 我和你遇到同样的问题,api.js会放在自己的项目中会报同样的错,放在playground中却可以执行,请问你解决这种情况了吗?
from weexone.
请问这个问题解决方法是什么?能把这个问题放出来吗?
from weexone.
我已经找到了,当前的确不支持,只能用黑魔法^^
weexteam/article#20
from weexone.
Related Issues (20)
- 最新版的weex无法require api.js HOT 4
- Uncaught TypeError: apis.getHome is not a function HOT 4
- 是否可以在浏览器端运行该程序 HOT 1
- 请问楼主你使用什么编辑器,貌似没有支持.we文件的编辑器 HOT 2
- 貌似没看到package.json…… HOT 1
- hello weexone server api hung up HOT 3
- Open android/playground是哪里呢? HOT 3
- 安卓或者苹果手机调试main.we文件,页面显示不出来 HOT 1
- 运行`npm run build` 报错! HOT 1
- 请问android文件夹是做什么用的? HOT 1
- build error (window8 android studio 2.1.2.)
- debug HOT 1
- 去掉上面那个条码的,单独一个页面 跳转有问题 是什么回事
- iOS端什么时候能出来
- 占用内存太大了
- 请教问题 HOT 4
- 请问是如何支持display属性的
- 电影模块显示空白,但是可以点击。赶紧修复吧 HOT 1
- 微信分享
- 你好运行项目报错如下
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 weexone.