Code Monkey home page Code Monkey logo

Comments (20)

yisar avatar yisar commented on May 18, 2024

需要先在 wean 根目录下 npm link,因为现在还没有发 npm 包

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

需要先在 wean 根目录下 npm link,因为现在还没有发 npm 包

在wean 根目录下 npm link后,无论返回根目录还是wean根目录下,继续执行wean -e app.json -o /dist/。问题仍然存在

from wean.

yisar avatar yisar commented on May 18, 2024

问题仍然存在

你是 windows 吗,我感觉像是环境变量没有设置上,我 windows 也这样,要不就,你就 node ./core/cli.js -e ./app.json -o ./dist/

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

问题仍然存在

你是 windows 吗,我感觉像是环境变量没有设置上,我 windows 也这样,要不就,你就 node ./core/cli.js -e ./app.json -o ./dist/

我是mac,目录结构如下图
image

from wean.

yisar avatar yisar commented on May 18, 2024

-e ./app.json -o ./dist/ 换成相对路径,另外具体是啥报错呀

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

-e ./app.json -o ./dist/ 换成相对路径,另外具体是啥报错呀

就是报zsh: command not found: wean

image

from wean.

yisar avatar yisar commented on May 18, 2024

我擦这好奇怪啊,放到 package.json 的 scripts 中试试

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

我擦这好奇怪啊,放到 package.json 的 scripts 中试试
貌似也不行
image

image

from wean.

yisar avatar yisar commented on May 18, 2024

算了放弃吧,把文件夹放到 wean 根目录,然后 node ./core/cli.js 吧,我觉得应该是 npm link 的时候没有 link 到全局

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

您好,我给搞好了。使用命令构建成功。但是dist文件夹下的html使用chorme打开,是空白,是必须使用APP的webview来加载这个html文件才可以吗?

image

image

from wean.

yisar avatar yisar commented on May 18, 2024

不是,正常就可以,你这个肯定不对,有两个文件都构建到外边了 使用相对路径!
-e ./app.json -o ./dist/

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

才疏学浅,还麻烦看看是哪一步出了问题?

执行命令之前
image

执行wean -e ./app.json -o ./dist
image

执行后,这俩文件就在dist文件夹外
image

from wean.

yisar avatar yisar commented on May 18, 2024

-e ./app.json -o ./dist/ 你缺了一个斜杠,e 是入口文件,o 是输出目录,都用相对路径,你自己多试试,反正必须要构建到 ./dist/ 文件下面

from wean.

yisar avatar yisar commented on May 18, 2024

我知道了………………有可能是 mac 的目录问题,emmm 我没有 mac 电脑,没法调试

from wean.

yisar avatar yisar commented on May 18, 2024

你的命令也不对 -e ./app.json -o ./dist/ 最后有个斜杠!!!! ./dist//////////////////////////////////////// 看到这个斜杠了吗

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

我知道了………………有可能是 mac 的目录问题,emmm 我没有 mac 电脑,没法调试

使用windows,所有文件都正常构建到了dist目录下,但直接运行html文件,页面空白的,控制台报错。

image

from wean.

AlexLoveYing avatar AlexLoveYing commented on May 18, 2024

你的命令也不对 -e ./app.json -o ./dist/ 最后有个斜杠!!!! ./dist//////////////////////////////////////// 看到这个斜杠了吗

不加斜杠的也试过了,都跑到dist文件夹外

from wean.

yisar avatar yisar commented on May 18, 2024

图片打不开,你直接加我qq吧 1533540012,你这个太坑了,构建出来的 index.html 不能直接打开

localhost:1234

from wean.

yisar avatar yisar commented on May 18, 2024


加一下群吧,issue 效率还是有点低

from wean.

yisar avatar yisar commented on May 18, 2024

788102601

from wean.

Related Issues (11)

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.