[Vuejs]-Getting Module not found: Error: Can't resolve '@uidu/ckeditor5-tokenizr' when importing npm package that I installed

1👍

My solution was changing the import to

import Tokenizr from '@uidu/ckeditor5-tokenizr/src/tokenizr';

The full path name. I still don’t know why this was an issue because in the package.json within @uidu/ckeditor5-tokenizr there was this defined

"main": "src/tokenizr.js",

which I’m pretty sure should have found what I manually entered. Either way this fixed my issue for now.

Leave a comment