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

Import fails with Astro Build #955

Open
goldenratio opened this issue Dec 21, 2023 · 0 comments
Open

Import fails with Astro Build #955

goldenratio opened this issue Dec 21, 2023 · 0 comments

Comments

@goldenratio
Copy link

Describe the bug
Unable to use import state with Astro build https://astro.build/

To Reproduce
Steps to reproduce the behavior:

  import sortable from 'html5sortable';

Getting following error, run npm run build

error ts(7016): Could not find a declaration file for module 'html5sortable'. 'C:/Projects/foler_name/node_modules/html5sortable/dist/html5sortable.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/html5sortable` if it exists or add a new declaration (.d.ts) file containing `declare module 'html5sortable';`

32   import sortable from 'html5sortable';
                          ~~~~~~~~~~~~~~~


Expected behavior
import should work

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