Closed igmacedom closed 3 weeks ago
Same there using blade + vite with version : "@yaireo/tagify": "^4.27.0"
Error: Missing "./src/tagify" specifier in "@yaireo/tagify" package
Code used :
import Tagify from '@yaireo/tagify';
try {
window.Tagify = Tagify;
} catch (e) {}
export { Tagify };
import in scss file :
@import '@yaireo/tagify/src/tagify';
Prerequisites
💥 Demo Page
Does not apply. Error in NPM package using Vite packager
Explanation
What is the expected behavior? Run compilation of any Vue 3 application without compilation error on latest version of NodeJS/NPM and Vite
What is happening instead? Compilation error occurs on line 2 of the dist/tagify.vue file due to the use of v-model="value". Replacing with v-bind="value" fixes the error, however, a second error happens on line 7 because tagify.min.js does not exist in the folder. Replacing with import Tagify from "./tagify.esm.js" fixes the error.
What error message are you getting?
Functional file