Git Product home page Git Product logo

Comments (17)

fallowu avatar fallowu commented on May 22, 2024 2

感谢指点,加入
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.

walid1992 avatar walid1992 commented on May 22, 2024

我这边没问题呀,你先执行下 npm run dev 试试呢

from weex-frame.

quhw avatar quhw commented on May 22, 2024

我也是这个问题。

qq 20170325215027

from weex-frame.

quhw avatar quhw commented on May 22, 2024

应该是有两个问题,getEntryFileContent这个方法:

  1. windows下面路径分隔符是\的问题,....\,没有转义,好像用posix可以吧;
  2. Vue.component('osc-root', require("components/osc-root")),这段,是不是component的路径没有给相对路径啊。

我不懂前端这些,看webpack处理的文件错误好像就是这个意思。

from weex-frame.

walid1992 avatar walid1992 commented on May 22, 2024

嗯,第一个问题可能存在,第二个问题不存在,因为webpack配置了别名所以没问题的

from weex-frame.

weiliang-Zhang avatar weiliang-Zhang commented on May 22, 2024

嗯,我这边测试也是getEntryFileContent这个方法出了问题,但是不太清楚这里应该怎么改,改了就会破坏原来程序的结构

from weex-frame.

walid1992 avatar walid1992 commented on May 22, 2024

windows 的问题,稍后解决吧,多谢大家的支持

from weex-frame.

wzwgithubw avatar wzwgithubw commented on May 22, 2024

windows 的问题,希望作者能够尽快解决一下。急急急。

from weex-frame.

sunflowerlb avatar sunflowerlb commented on May 22, 2024

windows下,getEntryFileContent 方法加入这句话
relativePath = relativePath.replace(/[\]/g, '/');
可以编译通过。。。

from weex-frame.

weiliang-Zhang avatar weiliang-Zhang commented on May 22, 2024

感谢指点,加入
relativePath=relativePath.replace(/\/ig,'/');
后编译通过,可以正常运行

from weex-frame.

weiliang-Zhang avatar weiliang-Zhang commented on May 22, 2024

@fallowu 有些文件找不到,你对着错误检查一下文件位置,基本上是import时的写法,windows下“./"表示当前文件之类的,全部改好就好了,貌似这种错误挺多的

from weex-frame.

fallowu avatar fallowu commented on May 22, 2024

@Lily233 谢谢。我重启电脑后就好了,不需要改,不重启一直都有。

from weex-frame.

xiaogaofudao avatar xiaogaofudao commented on May 22, 2024

这问题有谁解决了么

from weex-frame.

SPACEX-2022 avatar SPACEX-2022 commented on May 22, 2024

将./src/utils/modules/navigator.js里面的第8行的 import ip from 'config' 改为 import ip from 'ip' 就好了 @fallowu

from weex-frame.

weiliang-Zhang avatar weiliang-Zhang commented on May 22, 2024

from weex-frame.

shy19940217 avatar shy19940217 commented on May 22, 2024

怎么一直报错

from weex-frame.

shy19940217 avatar shy19940217 commented on May 22, 2024

求解啊

from weex-frame.

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.