-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
[Bug]: Failed to resolve entry for package "@materializecss/materialize #455
Comments
Hello, Thanks! |
@danice i made i git repository: https://github.com/axelf/materialize-vite |
This is working: It is working, but this says the editor if i hover over the import statement:
|
it's because the package has also this entry that takes preference in the import: This "module" was not causing problems when importing the library using webpack and it make it work when using it as a workspace (as in materialize-docs). I think we should replace "src/index.ts" here by the ".d.ts" that your comment says. But we should check that it keeps the library working when used from webpack and as a workspace. |
@danice thank you for helping me out. For now should i leave the import as it is |
this was causing issue: failed to resolve entry for package "@materializecss/materialize materializecss#455
Before submitting...
Context
Hi,
i want to use materialize in a laravel / vite project.
Current Behavior
After importing the package in my app.js
import { Sidenav } from '@materializecss/materialize';
i got this message:
Failed to resolve entry for package "@materializecss/materialize". The package may have incorrect main/module/exports specified in its package.json.
Expected behavior
Import this module without error messages
Possible Solutions or Causes
No response
Steps to reproduce
No response
Your Environment
The text was updated successfully, but these errors were encountered: