Skip to content

Cannot load *.ts files as part of Vuex store #320

@afontcu

Description

@afontcu

Describe the bug
A nuxt project with @nuxt/typescript-build doesn't seem to load *.ts files in /store.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a new nuxt+ts project using create-nuxt-app
  2. Create some store modules in *.ts files (even used the one from the docs).
  3. See the module not being loaded (not in the template, not in devtools)
  4. Change the file extension to *.js. Then, the file gets properly loaded.

Expected behavior
Nuxt to autoload store modules in *.ts files.

Additional context
I gave #219 suggestions a go with no success.

Happy to provide additional context if needed :)

Thank you! 🤗

Metadata

Metadata

Assignees

No one assigned

    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