jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.42k stars 714 forks source link

The requested module '/_nuxt/node_modules/drawflow/dist/drawflow.min.css?t=1706078236271' does not provide an export named 'default' #811

Open Aravinda93 opened 5 months ago

Aravinda93 commented 5 months ago

@jerosoler

I am using the Drawflow library in my Nuxt 3 application with composition API but for some reason, I get the following error:

The requested module '/_nuxt/node_modules/drawflow/dist/drawflow.min.css?t=1706078236271' does not provide an export named 'default'

This is because I am importing the styles from the Drawflow library Node modules:

<script setup>
import styleDrawflow from "drawflow/dist/drawflow.min.css";
</script>

if I remove this then everything works fine but some of the Node styles get messed up, how to fix this?

jerosoler commented 5 months ago

The css files not include export method.

View documentation to import css in nuxt.

Try or add in nuxt.config file

https://nuxt.com/docs/getting-started/styling