FortAwesome / Font-Awesome

The iconic SVG, font, and CSS toolkit
https://fontawesome.com
Other
73.63k stars 12.19k forks source link

Nuxt Error: Package subpath './styles.css' is not defined by "exports" #18387

Open alexandruana opened 2 years ago

alexandruana commented 2 years ago

Just tried following the steps here https://fontawesome.com/v6.0/docs/web/use-with/vue/use-with to integrate Fontawesome with my Nuxt project.

Even though I followed every step, I am getting the following error in terminal when Nuxt compiles: Nuxt Error: Package subpath './styles.css' is not defined by "exports"

Has anyone come across this?

tagliala commented 2 years ago

Hi!

Thanks for being part of the Font Awesome Community.

I personally cannot help with Nuxt.js, Let's wait for some feedback from the community or other members of the team more in the JS side

mattdell commented 2 years ago

Did you get anywhere with this @alexandruana? I am having a similar issue with version 6.

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './faTimes' is not defined by "exports" in /Users/mdell/Work/Repos/front-end/packages/front-end/node_modules/@fortawesome/pro-regular-svg-icons/package.json

EDIT: I upgraded my version of node from 14.5 to 14.19 and that resolved my issue for some reason.