Comments (17)
感谢指点,加入
relativePath=relativePath.replace(/\/ig,'/');
后编译通过,可以正常运行
应该两个右斜杠。
relativePath=relativePath.replace(/\\/ig,'/');
但是会出现另外一个错误,怎么解决呢?@Lily233
ERROR in ./src/utils/modules/navigator.js Module not found: Error: Cannot resolve 'file' or 'directory' D:\project\front\weex\weex-frame\weex-frame-master\config in D:\project\front\weex\weex-frame\weex-frame-master\src\utils\modules @ ./src/utils/modules/navigator.js 17:14-31
from weex-frame.
我这边没问题呀,你先执行下 npm run dev 试试呢
from weex-frame.
我也是这个问题。
from weex-frame.
应该是有两个问题,getEntryFileContent这个方法:
- windows下面路径分隔符是\的问题,....\,没有转义,好像用posix可以吧;
- Vue.component('osc-root', require("components/osc-root")),这段,是不是component的路径没有给相对路径啊。
我不懂前端这些,看webpack处理的文件错误好像就是这个意思。
from weex-frame.
嗯,第一个问题可能存在,第二个问题不存在,因为webpack配置了别名所以没问题的
from weex-frame.
嗯,我这边测试也是getEntryFileContent这个方法出了问题,但是不太清楚这里应该怎么改,改了就会破坏原来程序的结构
from weex-frame.
windows 的问题,稍后解决吧,多谢大家的支持
from weex-frame.
windows 的问题,希望作者能够尽快解决一下。急急急。
from weex-frame.
windows下,getEntryFileContent 方法加入这句话
relativePath = relativePath.replace(/[\]/g, '/');
可以编译通过。。。
from weex-frame.
感谢指点,加入
relativePath=relativePath.replace(/\/ig,'/');
后编译通过,可以正常运行
from weex-frame.
@fallowu 有些文件找不到,你对着错误检查一下文件位置,基本上是import时的写法,windows下“./"表示当前文件之类的,全部改好就好了,貌似这种错误挺多的
from weex-frame.
@Lily233 谢谢。我重启电脑后就好了,不需要改,不重启一直都有。
from weex-frame.
这问题有谁解决了么
from weex-frame.
将./src/utils/modules/navigator.js里面的第8行的 import ip from 'config' 改为 import ip from 'ip' 就好了 @fallowu
from weex-frame.
from weex-frame.
怎么一直报错
from weex-frame.
求解啊
from weex-frame.
Related Issues (20)
- Uncaught TypeError: Cannot read property 'TYPED_ARRAY_SUPPORT' of undefined
- dist/app.weex.js不存在 HOT 2
- mac 上./start 报错 HOT 2
- 准备放弃了吗 HOT 5
- 直接部署有问题 HOT 2
- module globalEvent HOT 2
- weexpack run web问题 HOT 3
- 关于自定义组件的问题
- 关于linebreak-style
- 运行npm run build之后报错
- android 端报错 HOT 2
- 页面之间的参数传递和。到令一个页面取参数。是哪个方法啊。求大神指点
- 手机app显示正常,web端运行起来只显示下面的tabbar,内容空白
- Unknown custom element: <osc-root> HOT 4
- 执行 ./start 这个怎么操作? HOT 1
- 执行weexpack run web 报错 HOT 1
- webpack没有做路径处理 HOT 1
- qs这个是自动生成的吗 HOT 2
- 这里面 的坑 不是一般的多啊,按照你的步骤 根本打不开,还是你用mac开发的 和我们的代码不一样? 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 weex-frame.