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

vue-toastification css import doesnt work with bun 1.0 #383

Open
Vinayaka-HK opened this issue Sep 13, 2023 · 3 comments
Open

vue-toastification css import doesnt work with bun 1.0 #383

Vinayaka-HK opened this issue Sep 13, 2023 · 3 comments
Labels
Type: Bug Something isn't working

Comments

@Vinayaka-HK
Copy link

Vinayaka-HK commented Sep 13, 2023

Versions

npm@next @2.0 with Vue3

Describe the bug

When running vue-toastification with npm , it works fine, but when running it when bun , it throws an error saying that "vue-toastification/dist/index.css" is not exported from package.json. and the toast wont trigger.

Expected behavior

Toast should trigger as usual.

Steps to reproduce

Reproduction .
Steps:

  1. bun install < your-project-name >
  2. normal configuration
import Toast from "vue-toastification";
// Import the CSS or use your own!
import "vue-toastification/dist/index.css";

const app = createApp(...);

const options = {
    // You can set your default options here
};

app.use(Toast, options); 
  1. Run the app.

Here, while running the program using bun run serve the error ERROR in ./src/main.js 12:0-43 - Module not found: Error: Package path ./dist/index.css is not exported from package <package-path>/node_modules/vue-toastification (see exports field in <package-path>/node_modules/vue-toastification/package.json)

Please fix it.

Temporary solution is to copy the css and put it in my assets folder and import it to main.js from there.

@Vinayaka-HK Vinayaka-HK added the Type: Bug Something isn't working label Sep 13, 2023
@gigerIT
Copy link

gigerIT commented Sep 18, 2023

We have the same issue.
The package seems abandoned so there is very little hope that any updates will be released in the future.
Best way is to look for alternatives.

@IgorHalfeld
Copy link

@gigerIT check this

#327 (comment)

@alesf
Copy link

alesf commented Oct 6, 2023

I just changed

import "vue-toastification/dist/index.css";

into

import "../../node_modules/vue-toastification/dist/index.css";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants