3 ms·
It wasn't so smooth for me. I gave up at Creating an optimized production build ...TypeError: Cannot read properties of null (reading 'useRef')
by xupybd 4y ago
It wasn't so smooth for me.
I gave up at
Creating an optimized production build ...TypeError: Cannot read properties of null (reading 'useRef')
- johnchristopher 4y agoOh, 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)
- kami8845 4y agoHaha, I'll set up a docker image that people can pull down!
- johnchristopher 4y agoThanks but FWIW, I'd also be interested in why it doesn't build. Shouldn't yarn/npm/gulp/whatever manage dependencies ?