Skip to content

VueJS generator: These relative modules were not found. Layout & views/ #194

@beejaz

Description

@beejaz

Hi!

Im trying out the VueJS client generator and following the guide at https://api-platform.com/docs/client-generator/vuejs/ and then after running the npx @api-platform/client-generator https://api src/ --generator vue --resource booking command, when I try to compile my vue project I get this error:

These relative modules were not found:

* ../components/booking/Layout in ./assets/vue/router/booking.js
* ../views/booking/List in ./assets/vue/router/booking.js
* ../views/booking/New in ./assets/vue/router/booking.js
* ../views/booking/Show in ./assets/vue/router/booking.js
* ../views/booking/Update in ./assets/vue/router/booking.js

There is no Layout file and there is no views folder at all in the output dir.

ls -al assets/vue/components/booking/
total 52
drwxrwxrwx 2 root root     0 Dec 30 11:53 .
drwxrwxrwx 2 root root  4096 Dec 30 11:53 ..
-rwxr-xr-x 1 root root  1462 Dec 30 11:53 Create.vue
-rwxr-xr-x 1 root root 20450 Dec 30 11:53 Form.vue
-rwxr-xr-x 1 root root 10385 Dec 30 11:53 List.vue
-rwxr-xr-x 1 root root  6393 Dec 30 11:53 Show.vue
-rwxr-xr-x 1 root root  2783 Dec 30 11:53 Update.vue
ls -al assets/vue/
total 5
drwxrwxrwx 2 root root 4096 Dec 30 13:00 .
drwxrwxrwx 2 root root    0 Dec 30 11:55 ..
-rwxr-xr-x 1 root root  139 Dec 30 12:20 App.vue
drwxrwxrwx 2 root root    0 Dec 30 11:53 components
drwxrwxrwx 2 root root    0 Dec 30 11:53 config
drwxrwxrwx 2 root root    0 Dec 30 11:53 error
-rwxr-xr-x 1 root root  511 Dec 30 13:00 index.js
drwxrwxrwx 2 root root    0 Dec 30 13:01 router
drwxrwxrwx 2 root root    0 Dec 30 11:53 store
drwxrwxrwx 2 root root    0 Dec 30 11:53 utils

Is this a bug or am I missing something?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions