Following the docs, I installed the package through npm install -D @nuxtjs/google-fonts (since I'm using Nuxt v2.14.7) then added '@nuxtjs/google-fonts' to my buildModules array in nuxt.config.js.
Just by doing that, I immediately get this error:
FATAL Unknown file extension: D:\projects...\node_modules\pathe\dist\index.cjs
Error [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension: node_modules\pathe\dist\index.cjs at /D:/projects/.../node_modules/@nuxtjs/google-fonts/dist/module.mjs:1 at Generator.next ()
Any idea what's wrong here?
node_modulesfolder,package.lock.json,npm cache clean --force,npm installif this not work, try to remove
@nuxtjs/google-fontswithnpm remove @nuxtjs/google-fontsand reinstall itnpm install -D @nuxtjs/google-fontsI hope this work