Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

示例没运行起来, 直接劝退 #180

Open
JxJPu9bD opened this issue Apr 10, 2024 · 3 comments
Open

示例没运行起来, 直接劝退 #180

JxJPu9bD opened this issue Apr 10, 2024 · 3 comments

Comments

@JxJPu9bD
Copy link

Describe the bug
A clear and concise description of what the bug is.

$ pnpm run dev

[email protected] dev /Users/xxx/mini-program/mor-app
mor compile --watch

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

[mor] ℹ 准备配置中, 即将开始编译 👇
配置名称: alipay-miniprogram
编译目标: 支付宝小程序
编译环境: development
编译类型: 小程序
编译模式: bundle
源码类型: wechat
源码目录: src
输出目录: dist/alipay
[mor] ℹ 已开启缓存, 可通过 --no-cache 关闭
[mor] ℹ 启动文件监听模式
[mor] ℹ 开始编译 ...
[mor] ℹ 依赖分析中 ...
[mor] ℹ 依赖分析完成: 耗时: 100.650343 ms
[mor] ✔ 编译完成, 耗时: 289.723189 ms

[mor] ℹ 准备配置中, 即将开始编译 👇
配置名称: web
编译目标: Web 应用
编译环境: development
编译类型: 小程序
编译模式: bundle
源码类型: wechat
源码目录: src
输出目录: dist/web
[mor] ℹ 已开启缓存, 可通过 --no-cache 关闭
[mor] ℹ 启动文件监听模式
[mor] ℹ 开始编译 ...
[mor] ℹ 依赖分析中 ...
[mor] ℹ 依赖分析完成: 耗时: 95.986822 ms
[mor] ⠴ 正在编译, 进度: 92.44%
[mor] ℹ 浏览器中打开链接: http://192.168.0.32:8080
或通过手机扫描下方二维码预览 👇

    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄

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

[mor] ✖ 编译 ./mor-entries/pages/index/index.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/index'
[mor] ✖ 编译 ./mor-entries/pages/index/index.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/index'
[mor] ✖ 编译 ./mor-entries/pages/index/index.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/index'
[mor] ✖ 编译 ./mor-entries/pages/index/index.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/isNativeReflectConstruct' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/index'
[mor] ✖ 编译 ./mor-entries/pages/index/index.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/index'
[mor] ✖ 编译 ./mor-entries/pages/index/index.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/inherits' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/index'
[mor] ✖ 编译 ./mor-entries/pages/logs/logs.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/logs'
[mor] ✖ 编译 ./mor-entries/pages/logs/logs.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/logs'
[mor] ✖ 编译 ./mor-entries/pages/logs/logs.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/logs'
[mor] ✖ 编译 ./mor-entries/pages/logs/logs.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/isNativeReflectConstruct' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/logs'
[mor] ✖ 编译 ./mor-entries/pages/logs/logs.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/logs'
[mor] ✖ 编译 ./mor-entries/pages/logs/logs.jsx 失败:
=> Module not found: Error: Can't resolve '@babel/runtime/helpers/inherits' in '/Users/xxx/mini-program/mor-app/mor-app/src/mor-entries/pages/logs'

To Reproduce
Steps to reproduce the behavior:

  1. mkdir mor-app
  2. cd mor-app && pnpm create mor
  3. pnpm run dev
@hwaphon
Copy link
Collaborator

hwaphon commented Apr 10, 2024

windows 系统还是 Mac?

@sunmmerOne
Copy link
Collaborator

提供下更多系统信息,我们看下

@985563349
Copy link

985563349 commented Jul 1, 2024

windows 系统还是 Mac?

Mac,通过 yarn 可以启动,pnpm 就会出现上诉错误。

node: v20.11.1
pnpm: 9.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants