ptrkvsky
ptrkvsky
 Same here `07:22:29 AM [astro] reload /src/hooks/useScrollSpy.tsx Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could...
same here, installed with windows program.
didnt work with powershell but worked with classic cmd.exe
``` var fs = require("fs") var dir = "./.cache/caches/gatsby-source-prismic-graphql" exports.onPreBootstrap = () => { if (!fs.existsSync(dir)) { fs.mkdirSync(dir) } } ``` Wordked for me thanks
Did you try to use the dynamic import ? https://nextjs.org/docs/advanced-features/dynamic-import