Attempted import error: 'react-loading-skeleton' does not contain a default export (imported as 'Skeleton') #146
Replies: 4 comments 5 replies
-
Hello, this is not enough information to reproduce the problem. Please provide a runnable example that shows the error (a GitHub repository or a CodeSandbox). |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, I can't grant access to the working project. And I see that there is an export inside the library. But we don't have this problem with other libraries. |
Beta Was this translation helpful? Give feedback.
-
"react-scripts": "2.1.1", tsconfig.json: |
Beta Was this translation helpful? Give feedback.
-
I tried updating the libraries react-scripts, ts-loader, typescript. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When compiling i get error:
Attempted import error: 'react-loading-skeleton' does not contain a default export (imported as 'Skeleton')
To Reproduce
installed
npm i react-loading-skeleton
I wrote in component:
import Skeleton from 'react-loading-skeleton';
import 'react-loading-skeleton/dist/skeleton.css';
Versions
What could be the problem? Help me please.
Beta Was this translation helpful? Give feedback.
All reactions