-
Notifications
You must be signed in to change notification settings - Fork 161
Open
Labels
Type: BugSomething isn't workingSomething isn't working
Description
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:
- 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type: BugSomething isn't workingSomething isn't working