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

Got failed to resolve import when run vue #287

Open
liuyangc3 opened this issue Mar 15, 2023 · 3 comments
Open

Got failed to resolve import when run vue #287

liuyangc3 opened this issue Mar 15, 2023 · 3 comments

Comments

@liuyangc3
Copy link

Steps:

ignite scaffold vue
cd vue

npm run dev 

> @ignt/vue-template@0.4.3 dev
> vite


  VITE v3.2.1  ready in 216 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
Failed to resolve import "../composables/useCosmosBankV1Beta1" from "src/def-composables/useAsset.ts". Does the file exist?

Version

ignite version            
Ignite CLI version:             v0.26.1
Ignite CLI build date:          2023-01-24T18:50:18Z
Ignite CLI source hash:         d2a2e287c176ba010557f0b8fbaa198cdeee928d
Ignite CLI config version:      v1
Cosmos SDK version:             v0.46.7
Your OS:                        darwin
Your arch:                      arm64
Your Node.js version:           v19.6.0
Your go version:                go version go1.19.2 darwin/arm64
Your uname -a:                  Darwin dypww6pq3v 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64
Your cwd:                       /opt/chcker/vue
Is on Gitpod:                   false
@ZiHengLee
Copy link

have u solved it?
i came across the same issue

@zoey-t
Copy link

zoey-t commented Dec 21, 2023

running into the same issue.

react also has failed to resolve import issue.

@zoey-t
Copy link

zoey-t commented Apr 5, 2024

Hi, I found a way to resolve this issue.
run ignite generate composables and it will download the missing packages.

for react frontend, run ignite generate hooks

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

3 participants