Giter VIP home page Giter VIP logo

Comments (7)

Mignet avatar Mignet commented on July 25, 2024 1

我也遇到这个问题,项目源码是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.

dodola avatar dodola commented on July 25, 2024

@Rowandjj 提示什么错误

from weexone.

Rowandjj avatar Rowandjj commented on July 25, 2024

@dodola can not resolve module xxx. 我问过勾股了,他说目前还不支持js中引用。但是很奇怪,我将你的代码放到playground中执行,是可以的。

from weexone.

dodola avatar dodola commented on July 25, 2024

@Rowandjj 他可能理解错你的意思了

from weexone.

zeuscoder avatar zeuscoder commented on July 25, 2024

@Rowandjj 我和你遇到同样的问题,api.js会放在自己的项目中会报同样的错,放在playground中却可以执行,请问你解决这种情况了吗?

from weexone.

joywt avatar joywt commented on July 25, 2024

请问这个问题解决方法是什么?能把这个问题放出来吗?

from weexone.

Mignet avatar Mignet commented on July 25, 2024

我已经找到了,当前的确不支持,只能用黑魔法^^
weexteam/article#20

from weexone.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.