Giter Site home page Giter Site logo

Can't resolve './pages/index/index' about morjs HOT 4 CLOSED

eleme avatar eleme commented on August 15, 2024
Can't resolve './pages/index/index'

from morjs.

Comments (4)

BboyZaki avatar BboyZaki commented on August 15, 2024

请描述一下什么场景下,使用什么命令行指令报的错?

from morjs.

axolo avatar axolo commented on August 15, 2024
(base) PS D:\Projects\my-app> npm run dev --watch

> [email protected] dev
> mor compile --watch

[mor] ℹ 发现配置文件: mor.config.js
[mor] ✔ 配置文件加载成功: mor.config.js
[mor] ℹ 准备配置中, 即将开始编译 👇
        配置名称: wechat-miniprogram
        编译目标: 微信小程序
        编译环境: development
        编译类型: 小程序
        编译模式: bundle
        源码类型: wechat
        源码目录: src
        输出目录: dist\wechat
[mor] ℹ 已开启缓存, 可通过 --no-cache 关闭
[mor] ℹ 启动文件监听模式
[mor] ℹ 开始编译 ...
[mor] ℹ 依赖分析中 ...
[mor] ℹ 依赖分析完成: 耗时: 77.0513 ms
[mor] ✔ 编译完成, 耗时: 919.2971 ms

[mor] ℹ 准备配置中, 即将开始编译 👇
        配置名称: alipay-miniprogram
        编译目标: 支付宝小程序
        编译环境: development
        编译类型: 小程序
        编译模式: bundle
        源码类型: wechat
        源码目录: src

[mor] ✔ 编译完成, 耗时: 3571.6095 ms

[mor] ✖ 编译 ./mor-entries/app.jsx 失败:
        => Module not found: Error: Can't resolve './pages/index/index' in 'D:\Projects\my-app\src\mor-entries'
[mor] ✖ 编译 ./mor-entries/app.jsx 失败:
        => Module not found: Error: Can't resolve './pages/logs/logs' in 'D:\Projects\my-app\src\mor-entries'

from morjs.

lyfeyaj avatar lyfeyaj commented on August 15, 2024

@axolo 目前看是 MorJS 转 Web 在 Windows 操作系统上的兼容性问题,晚些时候会在新版本中修复

from morjs.

BboyZaki avatar BboyZaki commented on August 15, 2024

@morjs/cli 1.0.74 已修复

from morjs.

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.