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

📦📦 Create Vite App 交流群 #2

Closed
ErKeLost opened this issue Aug 12, 2022 · 12 comments
Closed

📦📦 Create Vite App 交流群 #2

ErKeLost opened this issue Aug 12, 2022 · 12 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed stale

Comments

@ErKeLost
Copy link
Owner

ErKeLost commented Aug 12, 2022

857a7b082dc5611e491a2ec80256e4e

@ErKeLost ErKeLost added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 12, 2022
@ErKeLost ErKeLost changed the title Create Vite App 交流群 📦📦 Create Vite App 交流群 Aug 12, 2022
@ErKeLost ErKeLost pinned this issue Aug 12, 2022
@github-actions
Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label Aug 19, 2022
@BeanWei
Copy link

BeanWei commented Aug 20, 2022

@ErKeLost 二维码失效了。这个cli有node版本要求么,在16.x的环境下貌似无法work

@ErKeLost
Copy link
Owner Author

ErKeLost commented Aug 20, 2022

@ErKeLost 二维码失效了。这个cli有node版本要求么,在16.x的环境下貌似无法work

@BeanWei 二维码已更新 16版本下貌似没有解析path 绝对路径,导致报错,正在排查看看有没有其他方法, 目前项目在重构,可以暂时使用node14.x, 试了好多esbuild path 但是不生效

@github-actions github-actions bot removed the stale label Aug 20, 2022
@github-actions
Copy link

This issue is stale because it has been open for 7 days with no activity.

@github-actions github-actions bot added the stale label Aug 27, 2022
@github-actions
Copy link

This issue was closed because it has been inactive for 3 days since being marked as stale.

@1279285772
Copy link

我的node是18.16.0,mac 上执行 npx create-vite-template@latest 后,显示 sh: vite-app: command not found ,怎么处理(本人菜鸟,望大佬指点迷津)

@ErKeLost
Copy link
Owner Author

ErKeLost commented Jun 6, 2023

我的node是18.16.0,mac 上执行 npx create-vite-template@latest 后,显示 sh: vite-app: command not found ,怎么处理(本人菜鸟,望大佬指点迷津)

这个问题是因为新版本没有指定到文件地址导致的 最新版本已经修复了 可以使用了

@Zhengjincheng33
Copy link

想问下,src里面的plugins 文件,这些方法 在main.ts里面注册了要怎么使用,这种注册方式在网上没找到(本人菜鸟,望大佬指点迷津)

@ErKeLost
Copy link
Owner Author

@Zhengjincheng33 src 里的 plugin 主要是注册一些常见的功能 比如全局注册一些 全局组件 就直接 use 之后直接使用组件积极可以了 可以看看 vue 文档里的 use 注册

@Zhengjincheng33
Copy link

image
用起了,但是会有这个提示,要怎么关闭呢,谢谢大佬

@ErKeLost
Copy link
Owner Author

ErKeLost commented Sep 19, 2024

这个是 类型报错 你可以app?.appContext?. 具体要看一下上下文 可以试一下 可选链 或者
(app.appContext.config.globalProperties.$getlog as Function)(44444444) 试一下

@Zhengjincheng33
Copy link

谢谢, const { appContext } = getCurrentInstance() as any 我这样解决了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed stale
Projects
None yet
Development

No branches or pull requests

4 participants