question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When i Import styles and animation files it throws errors

See original GitHub issue

When i import the style and animation file like : import 'tippy.js/animations/scale.css'; import 'tippy.js/dist/tippy.css'; and the when i run my app it throws this error:

ERROR in ./node_modules/tippy.js/dist/tippy.css (./node_modules/react-scripts/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./node_modules/postcss-loader/src??ref--14-0!./node_modules/tippy.js/dist/tippy.css)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
BrowserslistError: Unknown browser query `dead`
    at /home/sagar/Desktop/Latest/UI-React/node_modules/postcss-cssnext/node_modules/browserslist/index.js:164:11
    at Array.reduce (<anonymous>)
    at resolve (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss-cssnext/node_modules/browserslist/index.js:132:18)
    at browserslist (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss-cssnext/node_modules/browserslist/index.js:224:16)
    at Browsers.parse (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss-cssnext/node_modules/autoprefixer/lib/browsers.js:61:16)
    at new Browsers (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss-cssnext/node_modules/autoprefixer/lib/browsers.js:52:30)
    at loadPrefixes (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss-cssnext/node_modules/autoprefixer/lib/autoprefixer.js:70:24)
    at plugin (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss-cssnext/node_modules/autoprefixer/lib/autoprefixer.js:81:24)
    at LazyResult.run (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:295:14)
    at LazyResult.asyncTick (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:208:26)
    at LazyResult.asyncTick (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:221:14)
    at LazyResult.asyncTick (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:221:14)
    at LazyResult.asyncTick (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:221:14)
    at LazyResult.asyncTick (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:221:14)
    at LazyResult.asyncTick (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:221:14)
    at LazyResult.asyncTick (/home/sagar/Desktop/Latest/UI-React/node_modules/postcss/lib/lazy-result.js:221:14)
 @ ./node_modules/tippy.js/dist/tippy.css 2:14-200 21:1-42:3 22:19-205
 @ ./src/app/common/components/Tooltip/Tooltip.tsx
 @ ./src/app/common/components/Tooltip/Tooltip.stories.tsx
 @ ./src/app/common/components sync ^\.\/(?:(?:(?!\.)(?:(?:(?!(?:|\/)\.).)*?)\/)?(?!\.)(?=.)[^\/]*?\.stories\.tsx\/?)$
 @ ./.storybook/generated-entry.js
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./node_modules/@storybook/addon-docs/dist/frameworks/common/config.js ./node_modules/@storybook/addon-docs/dist/frameworks/react/config.js ./.storybook/generated-entry.js (webpack)-hot-middleware/client.js?reload=true&quiet=true

can anyone help me what might be the issue?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
KubaJastrzcommented, Jun 15, 2020

If that doesn’t help, you can create a separate issue and close this one.

1reaction
KubaJastrzcommented, Jun 15, 2020
Module build failed (from ./node_modules/postcss-loader/src/index.js):
BrowserslistError: Unknown browser query `dead`

It looks like you have a problem with your browserlist configuration and/or version mismatch.

Try to create a minimal example and it will help you to identify the root cause. It’s most likely not a problem within tippy package, as we are not publishing our postcss configuration.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When i Import styles and animation files it throws errors #790
When i import the style and animation file like : import 'tippy.js/animations/scale.css'; import 'tippy.js/dist/tippy.css'; and the when i ...
Read more >
Angular 7 animation trigger causes console error
This error occurs when you have not imported "BrowserAnimationsModule" or "NoopAnimationsModule" module in your component containing Module.
Read more >
Why do I get an error while importing Styles? - Capture One
Despite this error message, the Styles should be installed. Please, verify whether those appear under the User Styles in the Styles and Presets ......
Read more >
Known issues in After Effects - Adobe Support
Issue: After Effects crashes on launch or throws a "File is not found" error message when opening images with Camera Raw 13.0.
Read more >
query - Angular
query(selector: string, animation: AnimationMetadata | AnimationMetadata[], ... By default, throws an error when zero items are found.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found