memgraph / orb

Graph visualization library
Apache License 2.0
364 stars 17 forks source link

Warning while making build #99

Open stefanak-michal opened 7 months ago

stefanak-michal commented 7 months ago

I have orb installed in my project with npm install @memgraph/orb

When I run build, console shows some warnings related to orb.

Failed to parse source map from 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\color.ts' file: Error: ENOENT: no such file or directory, open 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\color.ts'

Failed to parse source map from 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\distance.ts' file: Error: ENOENT: no such file or directory, open 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\distance.ts'

Failed to parse source map from 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\index.ts' file: Error: ENOENT: no such file or directory, open 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\index.ts'

Failed to parse source map from 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\position.ts' file: Error: ENOENT: no such file or directory, open 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\position.ts'

Failed to parse source map from 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\rectangle.ts' file: Error: ENOENT: no such file or directory, open 'C:\dev\cyphergui\node_modules\@memgraph\orb\src\common\rectangle.ts'

And it goes like this. Installed orb in node_modules doesn't contain src directory, so this warnings makes sense.

image

Map files in dist directory contains paths like this "../src/index.ts".

How this can be fixed?

matea16 commented 7 months ago

Hi @stefanak-michal, thank you for opening this issue. Someone from the team is going to pick this up and take a look