Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to fetch web fonts #86

Closed
5 tasks done
171h opened this issue Apr 18, 2023 · 0 comments
Closed
5 tasks done

Failed to fetch web fonts #86

171h opened this issue Apr 18, 2023 · 0 comments

Comments

@171h
Copy link

171h commented Apr 18, 2023

Describe the bug

I visit https://fonts.googleapis.com/css2?family=DM+Sans&family=DM+Serif+Display&family=DM+Mono&display=swap in browser successfully,but when I run pnpm dev:pwa, report follow errors.
// output

Nuxi 3.4.0                                                                                                                                                                                                                                                                                16:46:00
Nuxt 3.4.0 with Nitro 2.3.3                                                                                                                                                                                                                                                               16:46:00
                                                                                                                                                                                                                                                                                          16:46:03
  > Local:    http://localhost:3000/
  > Network:  http://172.31.144.1:3000/
  > Network:  http://192.168.0.113:3000/
  > Network:  http://192.168.200.1:3000/
  > Network:  http://192.168.70.1:3000/
  > Network:  http://[240e:33e:78df:bb10:38e9:5478:a8d5:72b5]:3000/
  > Network:  http://[240e:33e:78df:bb10::1001]:3000/
  > Network:  http://[240e:33e:78df:bb10:a779:9b7e:191f:1b06]:3000/

✔ Nuxt Devtools is enabled v0.4.0 (experimental)                                                                                                                                                                                                                                          16:46:05
✔ Nitro built in 1152 ms                                                                                                                                                                                                                                                            nitro 16:46:16

 ERROR  Failed to fetch web fonts                                                                                                                                                                                                                                                         16:46:48


 ERROR  fetch failed (https://fonts.googleapis.com/css2?family=DM+Sans&family=DM+Serif+Display&family=DM+Mono&display=swap)                                                                                                                                                               16:46:48  

  at async $fetchRaw2 (/D:/Python/Project/github/vitesse-nuxt3/node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/shared/ofetch.502a4799.mjs:180:24)
  at async $fetchRaw2 (/D:/Python/Project/github/vitesse-nuxt3/node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/shared/ofetch.502a4799.mjs:180:24)
  at async $fetchRaw2 (/D:/Python/Project/github/vitesse-nuxt3/node_modules/.pnpm/[email protected]/node_modules/ofetch/dist/shared/ofetch.502a4799.mjs:180:24)

ℹ Vite client warmed up in 40206ms                                                                                                                                                                                                                                                        16:46:48
ℹ                                                                                                                                                                                                                                                                                         16:46:59
PWA v0.14.4
mode      generateSW
precache  1 entries (0.00 KiB)
files generated
  .nuxt\dev-sw-dist\sw.js.map
  .nuxt\dev-sw-dist\sw.js
  .nuxt\dev-sw-dist\workbox-d7ce3138.js.map
  .nuxt\dev-sw-dist\workbox-d7ce3138.js

 WARN  warnings                                                                                                                                                                                                                                                                           16:46:59  
  Some items were passed to additionalManifestEntries without revisioning info. This is generally NOT safe. Learn more at https://bit.ly/wb-precache.
  - /

  One of the glob patterns doesn't match any files. Please remove or fix the following: {
  "globDirectory": "D:/Python/Project/github/vitesse-nuxt3/.nuxt/dev-sw-dist",
  "globPattern": "**/*.{js,css,html,txt,png,ico,svg}",
  "globIgnores": [
    "**/node_modules/**/*",
    "sw.js",
    "workbox-*.js"
  ]
}

Reproduction

I hava no any changes with this repo.

System Info

Nodejs:19.6.0
win11

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant