web
web copied to clipboard
Got failed to resolve import when run vue
Steps:
ignite scaffold vue
cd vue
npm run dev
> @ignt/[email protected] 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
have u solved it? i came across the same issue
running into the same issue.
react also has failed to resolve import issue.
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