You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When creating a component within a module, this.$nuxt is undefined in the component when using Options API (Vue.extend) or Class API (@component). Defining the component using export default {...} everything works as expected.
To Reproduce
Steps to reproduce the behavior:
Create a module with a component
Use TypeScript for component with Options API or Class API
Try to access this.$nuxt -> undefined
EDIT:
Problem occurs only when Module is in a local package outside the project folder.
With this folder structure, TestComponent.vue cannot use Options or Class API:
Describe the bug
When creating a component within a module,
this.$nuxt
is undefined in the component when using Options API (Vue.extend) or Class API (@component). Defining the component usingexport default {...}
everything works as expected.To Reproduce
Steps to reproduce the behavior:
EDIT:
Problem occurs only when Module is in a local package outside the project folder.
With this folder structure, TestComponent.vue cannot use Options or Class API:
This on the other hand works:
When I use npm pack and then install the tgz as a dependency in the nuxt project it works as well.
The text was updated successfully, but these errors were encountered: