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

Unexpected character '#' #192

Closed
dagadbm opened this issue Mar 20, 2024 · 1 comment
Closed

Unexpected character '#' #192

dagadbm opened this issue Mar 20, 2024 · 1 comment

Comments

@dagadbm
Copy link

dagadbm commented Mar 20, 2024

I am using node 16 ( I cannot update to node 17 as there are a ton of dependencies that would break my project.

I am getting this error on the front-end:

/node_modules/@dagrejs/graphlib/lib/graph.js 18:2
Module parse failed: Unexpected character '#' (18:2)
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
| 
| class Graph {
>   #isDirected = true;
|   #isMultigraph = false;
|   #isCompound = false;
./node_modules/@dagrejs/graphlib/lib/data/priority-queue.js 9:2
Module parse failed: Unexpected character '#' (9:2)
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
|  */
| class PriorityQueue {
>   #arr = [];
|   #keyIndices = {};

Is there a way to make graphlib still support node 16?

I really wanted to try to use the latest version of dagre because of the whole ordering logic.

It is very weird when I add new nodes to the graph the graph always gets redirected in a completely random way (still unsure how to fix this in dagre but hoping I can get some support on this as well)

@rustedgrail
Copy link
Collaborator

Merged a PR to replace # with _

#194

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

2 participants