Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

510
Visualizações
generated-stories-entry.js error for rule 'import/no-unresolved'

I have added storybook to my Vue project with vue add storybook.

This has added several dependencies to my project, e.g. in my package.json I find this among others:

"vue": "~2.6.14",
"@storybook/vue": "6.4.19",
"vue-cli-plugin-storybook": "~2.1.0",
"eslint": "~6.8.0",

Now I am trying to run the storybook server with npm run storybook:serve but I get an error:

Error from storybook:serve

I have been trying different things, like configuring the 'import/no-unresolved' rule to be off, emitError: false on the eslist-loader inside .eslintrc, skipping the linter plugin in the webpack configuration, etc. Nothing worked and each attempt just produced new errors.

Currently I have no explicit es-linter nor webpack configuration at all. But if I comment a line inside node_modules/eslint-loader/index.js like this:

// emitter(new ESLintError(messages));

then it all works.

I don't want to be commenting out lines inside a library, I would like to have a proper solution and understand what is happening.

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

I found the answer myself. I had to add the eslint-plugin-import package:

npm install eslint-plugin-import

And add the plugin to the eslint configuration:

"plugins": [
    "import"
]
about 4 years ago · Juan Pablo Isaza Relatório

0

For me the suggested answer didn’t work, what fix it in the end was to ignore those files in eslint configuration:

"ignorePatterns": [
      "generated-stories-entry.js",
      "storybook-init-framework-entry.js"
    ],
about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda