Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Module not found: Error: Can't resolve 'vue-property-decorator' ... #424

Open
Pazulay opened this issue Jun 10, 2022 · 0 comments
Open

Module not found: Error: Can't resolve 'vue-property-decorator' ... #424

Pazulay opened this issue Jun 10, 2022 · 0 comments

Comments

@Pazulay
Copy link

Pazulay commented Jun 10, 2022

I have a Vue 2 project that uses Webpack and typescript with class component syntax. The class component syntax is made available with the 'av-ts' plugin. I am trying to replace av-ts with vue-class-component/vue-property-decorator but my webpack bundler is throwing this error after I adjusted one of the components.

ERROR in ./src/components/example-component/example.component.ts
Module not found: Error: Can't resolve 'vue-property-decorator' in '/app/src/components/example-component'
@ ./src/components/example-component/example.component.ts 20:0-62
@ ./src/main.ts
@ multi (webpack)-dev-server/client?http://0.0.0.0:3000 ./src/main.ts
Child html-webpack-plugin for "index.html":
           1 asset
                 1 module
webpack: Failed to compile.

Versions:

  • OS: Ubuntu Remote
  • node: 8.4.0
  • npm: 5.3.0
  • webpack: 3.8.1
  • typescript: 2.6.1
  • vue: 2.5.0
  • vue-property-decorator: 9.1.2
  • vue-class-component: 7.2.6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant