Open Caresle opened 1 year ago
Hi, when i'm trying to import the css file I get the next error.
Error:
Error: Package path ./dist/vue-pivottable.css is not exported from package C:\dev\vue\monedero-vue\node_modules\vue-pivottable
These are my vue and vue-pivottable versions:
"vue": "^2.6.14", "vue-pivottable": "^0.4.64"
Also this is my eslint config file:
module.exports = { root: true, env: { node: true }, extends: [ 'plugin:vue/essential', '@vue/standard' ], parserOptions: { parser: '@babel/eslint-parser' }, rules: { 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off' } }
Workaround
For the moment I was able to remove the error adding the next line in the package json of vue-pivottable in the node_modules folder:
"exports": { ".": { "import": "./dist/vue-pivottable.mjs", "require": "./dist/vue-pivottable.umd.js" }, // I added this line "./dist/vue-pivottable.css": "./dist/vue-pivottable.css" },
Hi, when i'm trying to import the css file I get the next error.
Error:
These are my vue and vue-pivottable versions:
Also this is my eslint config file:
Workaround
For the moment I was able to remove the error adding the next line in the package json of vue-pivottable in the node_modules folder: