Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failing import css file #74

Open
Caresle opened this issue Apr 3, 2023 · 0 comments
Open

Failing import css file #74

Caresle opened this issue Apr 3, 2023 · 0 comments

Comments

@Caresle
Copy link

Caresle commented Apr 3, 2023

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"
  },
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant