You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using an image constructed with the following Dokcerfile:
FROM ghcr.io/project-osrm/osrm-frontend:latest
EXPOSE 9966
CMD ["npm", "start"]
I get the following 2 errors:
2024-04-12 14:07:23 /src/node_modules/budo/node_modules/micromatch/index.js:44
2024-04-12 14:07:23 let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
2024-04-12 14:07:23 ^^^
2024-04-12 14:07:23 SyntaxError: Unexpected token ...
2024-04-12 14:07:23 at Object.exports.runInThisContext (vm.js:76:16)
2024-04-12 14:07:23 at Module._compile (module.js:542:28)
2024-04-12 14:07:23 at Object.Module._extensions..js (module.js:579:10)
2024-04-12 14:07:23 at Module.load (module.js:487:32)
2024-04-12 14:07:23 at tryModuleLoad (module.js:446:12)
2024-04-12 14:07:23 at Function.Module._load (module.js:438:3)
2024-04-12 14:07:23 at Module.require (module.js:497:17)
2024-04-12 14:07:23 at require (internal/module.js:20:19)
2024-04-12 14:07:23 at Object.<anonymous> (/src/node_modules/budo/lib/budo.js:6:15)
2024-04-12 14:07:23 at Module._compile (module.js:570:32)
2024-04-12 14:16:43 Error: Parsing file /src/src/leaflet_options.js: Unexpected token (57:12)
2024-04-12 14:16:43 at Deps.parseDeps (/src/node_modules/module-deps/index.js:519:15)
2024-04-12 14:16:43 at getDeps (/src/node_modules/module-deps/index.js:447:44)
2024-04-12 14:16:43 at /src/node_modules/module-deps/index.js:430:38
2024-04-12 14:16:43 at ConcatStream.<anonymous> (/src/node_modules/concat-stream/index.js:37:43)
2024-04-12 14:16:43 at emitNone (events.js:91:20)
2024-04-12 14:16:43 at ConcatStream.emit (events.js:185:7)
2024-04-12 14:16:43 at finishMaybe (/src/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:630:14)
2024-04-12 14:16:43 at endWritable (/src/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:638:3)
2024-04-12 14:16:43 at ConcatStream.Writable.end (/src/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js:594:22)
2024-04-12 14:16:43 at DuplexWrapper.onend (/src/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js:577:10)
The second error can be fixed by modifying the malformed URL within /src/src/leaflet_options.js inside the container (line 57):
services: [{label: 'Car (fastest)',path: ''http://localhost:5000'/route/v1' // -> replace with 'http://localhost:5000/route/v1'}],
However, I am unable to resolve the first error. Any insights would be greatly appreciated. Additionally, it is quite peculiar that the second error was not flagged earlier.
The text was updated successfully, but these errors were encountered:
When using an image constructed with the following Dokcerfile:
I get the following 2 errors:
The second error can be fixed by modifying the malformed URL within
/src/src/leaflet_options.js
inside the container (line 57):However, I am unable to resolve the first error. Any insights would be greatly appreciated. Additionally, it is quite peculiar that the second error was not flagged earlier.
The text was updated successfully, but these errors were encountered: