Skip to content
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

Getting error while running canvas using npm- node 18, python 3.12 #2401

Open
rahuljustbaat opened this issue Jul 16, 2024 · 0 comments
Open

Comments

@rahuljustbaat
Copy link

rahuljustbaat commented Jul 16, 2024

> @layerhub-io/[email protected] dev /Users/rahulkathuria/Documents/justbaat/layerhub-renderer
> node --experimental-specifier-resolution=node --loader ts-node/esm.mjs src/index.ts

(node:25059) ExperimentalWarning: `--experimental-loader` may be removed in the future; instead use `register()`:
--import 'data:text/javascript,import { register } from "node:module"; import { pathToFileURL } from "node:url"; register("ts-node/esm.mjs", pathToFileURL("./"));'
(Use `node --trace-warnings ...` to show where the warning was created)
(node:25059) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(node:25059) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
node:internal/modules/cjs/loader:1460
  return process.dlopen(module, path.toNamespacedPath(filename));
                 ^

Error: dlopen(/Users/rahulkathuria/Documents/justbaat/layerhub-renderer/node_modules/.pnpm/[email protected][email protected]/node_modules/canvas/build/Release/canvas.node, 0x0001): symbol not found in flat namespace '_cairo_fill'
    at Module._extensions..node (node:internal/modules/cjs/loader:1460:18)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12)
    at Module.require (node:internal/modules/cjs/loader:1231:19)
    at require (node:internal/modules/helpers:177:18)
    at Object.<anonymous> (/Users/rahulkathuria/Documents/justbaat/layerhub-renderer/node_modules/.pnpm/[email protected][email protected]/node_modules/canvas/lib/bindings.js:3:18)
    at Module._compile (node:internal/modules/cjs/loader:1364:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
    at Module.load (node:internal/modules/cjs/loader:1203:32)
    at Module._load (node:internal/modules/cjs/loader:1019:12) {
  code: 'ERR_DLOPEN_FAILED'
}

Node.js v18.20.4
 ELIFECYCLE  Command failed with exit code 1.
@rahuljustbaat rahuljustbaat changed the title Getting error while installing canvas using npm- node 20, python 3.12 Getting error while running canvas using npm- node 18, python 3.12 Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant