網站搜尋
我建立了一個應用程式,我想將它部署到 Netlify,但它無法運作。這個應用程式是一個使用 TypeScript 和 Chakra-UI 的 React Vite 應用程式。建置成功,但我得到很多這樣的錯誤:'node_modules/@chakra-ui/button/dist/chunk-DA7QIPTJ.mjs (1:0) 模組級指令在打包時會造成錯誤,"node_modules/@chakra-ui/button/dist/chunk-DA7QIPTJ.mjs" 中的 &qu
閱讀更多 →
我的應用程式在 npm run dev 上運行正常。
然而,當部署到 Netlify 或在本地運行 npm run build 時,我收到此錯誤:
app/api/projects/[projectId]/activity/route.ts Type error: Route "app/api/projects/[projectId]/activity/route.ts" has an in 閱讀更多 →
我正在嘗試將 gatsby-plugin-netlify-cms 與 Gatsby TypeScript 整合,每次我嘗試構建網站時,都會收到以下錯誤訊息。
"您可能需要一個適當的加載器來處理此檔案類型,目前沒有配置任何加載器來處理這個檔案。"
我的 gatsby-config.js 文件寫成如下,
module.exports = { /* Your site config here */ plugins: [ `gatsby 閱讀更多 →我正在使用 React Typescript,並且我按照 tRPC 文件進行了服務器/客戶端設置,但我收到這個錯誤。有人知道為什麼在部署時會發生這種情況嗎?我在本地使用時一切正常。
8:41:46 AM: TS2339: Property 'createClient' does not exist on type '"useContext collides with a built-in method, you should rename this router or procedure on your backend" | "Provider collides with a built-in method, you should rename this router or procedure on your backend" | "createClient collides with a built-in method, you should rename this router or procedu 閱讀更多 →