web icon indicating copy to clipboard operation
web copied to clipboard

Got failed to resolve import when run vue

Open liuyangc3 opened this issue 1 year ago • 3 comments

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

liuyangc3 avatar Mar 15 '23 14:03 liuyangc3

have u solved it? i came across the same issue

ZiHengLee avatar May 16 '23 03:05 ZiHengLee

running into the same issue.

react also has failed to resolve import issue.

zt-9 avatar Dec 21 '23 22:12 zt-9

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

zt-9 avatar Apr 05 '24 02:04 zt-9