Closed TBSI-Seth closed 3 years ago
I found the CSS file in the vue node-modules.... The css was located in the lib folder.... I fixed this by altering the import statement to direct to the lib folder....
import "v-network-graph/**lib**/style.css"
Hi @TBSI-Seth,
Thank you for reporting the error and the solution.
Unfortunately, I have not been able to reproduce the problem.
In the package.json
, I have specified the following mapping so that it can be loaded with import "v-network-graph/style.css"
.
"exports": {
...
". /style.css": ". /lib/style.css"
},
Something in your environment may not support this "subpath exports".
If importing "v-network-graph/lib/style.css" fixes the problem, you can use it as is. However, please note that if an environment supports the above "subpath exports", an error will probably occur. (This is because the access is to a file path which has not been exported.)
----EDIT---- I found the CSS file in the vue node-modules.... The css was located in the lib folder.... I fixed this by altering the import statement to direct to the lib folder....
import "v-network-graph/**lib**/style.css"
---ORIGINAL----
the npm install command doesn't pull the style.css file. Likewise, I'm getting an error when trying to pull or even find the style.css file. Where can I find the correct style.css file, should be included in the Repo?
I ran the following npm command successfully.
npm i v-network-graph
I have added the following import and use statements
After running my vue app, I get the following error:
I run the suggested command....
npm install --save v-network-graph/style.css
And get the following error