Hey there!
I am trying to include the MorphSVGPlugin plugin to Vue and I get the error.
This dependency was not found:
* gsap/MorphSVGPlugin in ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/ts-loader??ref--13-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/games/drag-and-drop/Shapes.vue?vue&type=script&lang=ts&
To install it, you can run: npm install --save gsap/MorphSVGPlugin
Type checking in progress...
(node:15996) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, stat '/home/yesworld/.steampath'
(node:15996) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15996) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
My code
import { MorphSVGPlugin } from 'gsap/MorphSVGPlugin' // doesn't work
import { Draggable } from 'gsap/Draggable' // works fine
import gsap from 'gsap'
gsap.registerPlugin(Draggable)
gsap.registerPlugin(MorphSVGPlugin)
package.json
"dependencies": {
"axios": "^0.19.2",
"blockly": "^3.20200402.1",
"core-js": "^3.6.5",
"gsap": "^3.4.2",
"register-service-worker": "^1.7.1",
"vue": "^2.6.11",
"vue-class-component": "^7.2.3",
"vue-i18n": "^8.17.3",
"vue-property-decorator": "^8.4.2",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
"devDependencies": {
"@types/gsap": "^1.20.2",
"@types/webpack": "^4.4.0",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"@vue/cli-plugin-babel": "^4.4.0",
"@vue/cli-plugin-eslint": "^4.4.0",
"@vue/cli-plugin-pwa": "^4.4.0",
"@vue/cli-plugin-typescript": "^4.4.0",
"@vue/cli-service": "^4.4.0",
"@vue/eslint-config-prettier": "^6.0.0",
"@vue/eslint-config-typescript": "^5.0.2",
"copy-webpack-plugin": "^5.1.1",
"eslint": "^6.7.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^6.2.2",
"prettier": "^1.19.1",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
"typescript": "~3.9.3",
"vue-cli-plugin-i18n": "^1.0.1",
"vue-cli-plugin-pug": "^1.0.7",
"vue-template-compiler": "^2.6.11"
}
Thank you!