-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Am getting this error while working on canvas "YouTube timestamp: 1:56:31/ 4:04:52 " #3
Comments
Fixed it by adding this on my next.config.mjs file
This config is telling Next.js to exclude canvas from the build process and load it at runtime instead. |
The config provided produces this error: "Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node". |
as mentioned above by @giangutz, add a webpack to configure canvas commonjs symbols in your nextjs.config.mjs. `/** @type {import('next').NextConfig} */ export default nextConfig; |
./node_modules/canvas/build/Release/canvas.node
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
The text was updated successfully, but these errors were encountered: