nuxt / typescript

TypeScript Support for Nuxt 2
https://typescript.nuxtjs.org
MIT License
567 stars 124 forks source link

Add ability to break modules into subfiles #432

Open ghost opened 4 years ago

ghost commented 4 years ago

Is it possible to break modules in store/

A problem is, when You use vanilla style, by default nuxt recognises each file in submodule directory as submodule, not a helper file. And does not work as expected.

So, Is it possible to break single vuex module file into directory with the same name and index + support files as in the screenshot below?

Снимок экрана 2020-08-18 в 12 22 25

kevinmarrec commented 4 years ago

@ysizarie Could you maybe confirm it work when using JavaScript over TypeScript ?

As stated here : https://nuxtjs.org/guide/vuex-store#module-files, it should work

Please provide a repository with the unexpected behavior so I can take a look :)

kevinmarrec commented 4 years ago

@ysizarie Any updates ?