You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
bun install < your-project-name >
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);
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.
The text was updated successfully, but these errors were encountered:
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.
I'm also using Bun (1.1.42) with Vite (6.0.5) and vue-toastification (2.0.0-rc.5), and I do not have any issues (in a client-rendered app that is). So maybe the Bun people solved it on their side by now.
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:
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.
The text was updated successfully, but these errors were encountered: