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

加载示例应用help.ts报错 #7

Open
CurtainWei opened this issue Jan 21, 2024 · 4 comments
Open

加载示例应用help.ts报错 #7

CurtainWei opened this issue Jan 21, 2024 · 4 comments

Comments

@CurtainWei
Copy link

作者大大你好,我在使用 pnpm create alemonjs@latest -y 命令创建项目后,只按照文档修改了 a.login.config.ts 登录配置文件,没有修改其他代码,但是加载项目自带的示例应用时出错了:
[APP] [local dev] apps/img/help.ts(1,27): error TS2305: Module '"alemonjs"' has no exported member 'AInstruct'.

我的 Node.js 版本是 v18.18.2,TypeScript 版本是 5.3.2. 各个依赖的版本如下:

  • alemonjs@1.0.0
  • ioredis 5.3.2
  • mysql2 3.7.1
  • sequelize 6.35.2
  • afloat 1.1.13
  • alemonjs 1.2.0-rc.15
  • pm2 5.3.1
  • prettier 3.2.4
@ningmengchongshui
Copy link
Owner

应该是脚手架并没有清理干掉。把报错的代码清了就好了,不影响正常使用。

@ningmengchongshui
Copy link
Owner

那个只是示例功能,核心的东西都封装起来了,并不会造成框架出现BUG

@CurtainWei
Copy link
Author

好滴明白了,谢谢解答

@ningmengchongshui
Copy link
Owner

ningmengchongshui commented Jan 24, 2024

已经推送新版安装示例说明,推荐使用 pnpm create alemonjs@latest -y 安装最新版,npm有时候会存在网络延迟或缓存问题

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

2 participants