Hacker News new | ask | show | jobs
by johnchristopher 1175 days ago
Oh, my install failed at:

    Failed to compile.

    pages/index.tsx
    `next/font` error:
    Failed to fetch `Inter` from Google Fonts.


    > Build failed because of webpack errors
Apparently because it can't fetch a font from Google. There should be assets that are critical (js/ts code, templates,css) and assets that are not (freaking fonts) to a yarn build.

edit: hacketyfixey, let's punch the thing in the face until it works:

    ./pages/index.tsx:
    2:  // import { Inter } from "next/font/google";
    12: // const inter = Inter({ subsets: ["latin"] });
(I am sorry)
1 comments

Haha, I'll set up a docker image that people can pull down!
Thanks but FWIW, I'd also be interested in why it doesn't build. Shouldn't yarn/npm/gulp/whatever manage dependencies ?
I've not found a dependency manager that works reliably across multiple operating systems and operating system versions.
I did, just not in the JavaScript ecosystem.