Closed janlin002 closed 10 months ago
Hey @janlin002, thanks for sharing your debug logs and for filing a detailed report. I’m currently trying to reproduce this, but so far I haven’t encountered any issues with deploying. Could you try running it locally using firebase emulators:start
to see if any errors would be raised?
Also, could you share some details on how you set up your Next.js project? What dependencies do you currently have installed? If possible, could you share an MCVE so that we can reproduce the issue locally?
Lastly, could you elaborate what you mean by "Before I joined Konva, deployment was successful."?
@aalej The results I executed on the terminal are as follows:
firebase emulators:start
i emulators: Starting emulators: hosting
i emulators: Shutting down emulators.
i hub: Stopping emulator hub
Error: An unexpected error has occurred.
The error message is the same as above
This is what dependencies my currently project installed
{
"name": "question-test",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"export": "next export"
},
"dependencies": {
"@iconify/react": "^4.1.1",
"@mui/material": "^5.15.4",
"@types/lodash": "^4.14.191",
"@types/pako": "^2.0.0",
"canvas": "^2.5.0",
"examComponent": "workspace:*",
"firebase": "^7.10.0",
"lodash": "^4.17.21",
"next": "^13.1.2",
"pako": "^2.1.0",
"react": "^18",
"react-dom": "^18"
},
"devDependencies": {
"@types/node": "^20.11.0",
"@types/react": "^18.0.28",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.0.4",
"typescript": "^5.2.2"
}
}
and this is my project next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
swcMinify: false,
trailingSlash: false,
// output: 'export',
transpilePackages: ['hooks', 'utils', 'constants'],
// experimental: {
// esmExternals: 'loose', // required to make Konva & react-konva work
// },
distDir: '.next',
};
module.exports = nextConfig;
Before I joined Konva, deployment was successful.
While using the Lines feature of Konva, I can deploy it successfully. However, when I add the Texts feature, it leads to deployment failure."
[REQUIRED] Environment info
Node: v18.18.2
Firebase: ^7.10.0
Next: ^13.1.2
firebase-tools: 13.0.3
Platform: MacBook Air M2 (Sonoma 14.2.1)
[REQUIRED] Test case
firebase deploy --only hosting
[REQUIRED] Steps to reproduce
firebase init hosting
firebase deploy
(fail) (Before I joined Konva, deployment was successful.)[REQUIRED] Expected behavior
hosting will be deployed
[REQUIRED] Actual behavior
hosting is built, but the deploiement fails with the following error :
firebase-debug.log