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

tileserver-gl Module Not Found Error #1308

Closed
akram-mhss opened this issue Jul 9, 2024 · 6 comments
Closed

tileserver-gl Module Not Found Error #1308

akram-mhss opened this issue Jul 9, 2024 · 6 comments

Comments

@akram-mhss
Copy link

akram-mhss commented Jul 9, 2024

Hello,

I am encountering an issue while trying to run tileserver-gl on a server without internet access. I have successfully set up tileserver-gl on other servers using a prepared folder with all necessary files, but on this particular server, I receive the following error:

`C:\Users\andreas\Desktop\map> npx tileserver-gl --mbtiles africa.mbtiles

node:internal/modules/cjs/loader:1340
return process.dlopen(module, path.toNamespacedPath(filename));
Error: Le module spécifié est introuvable.
?\C:\Users\andreas\Desktop\map\node_modules@maplibre-gl-native\lib\node-v108\mbgl.node
at Module._extensions..node (node:internal/modules/cjs/loader:1340:18)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12)
at Module.require (node:internal/modules/cjs/helpers:107:18)
at require (node:internal/modules/cjs/helpers:132:18)
at Object. (C:\Users\andreas\Desktop\map\node_modules@maplibre-gl-native\platform\node\index.js:5:12)
at Module._compile (node:internal/modules/cjs/loader:1255:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1309:10)
at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12) {
code: 'ERR_DLOPEN_FAILED'
}
Node.js v18.18.1`

i have already make the tileserver-gl work in server 2022 ->
#1020

@acalcutt
Copy link
Collaborator

acalcutt commented Jul 9, 2024

Could it be you prepared it on a different version of node? Do you have node_modules\@maplibre-gl-native\lib\node-v108\mbgl.node in your folder or is the 'node-v108' a different version

@akram-mhss
Copy link
Author

No is the same node V18.18.1 u can see the post #1020

@acalcutt
Copy link
Collaborator

acalcutt commented Jul 9, 2024

And the file does exist there at node_modules\maplibre-gl-native\lib\node-v108\mbgl.node?

One other thing on windows is you need the C++ reditributable. maybe the version on that particular server is out of date? I ran into an issue testing the current maplibre-native pre release where I had to update to the latest version or maplibre-native was failing silently. Maybe as a precaution make sure you have the latest from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version

@akram-mhss
Copy link
Author

akram-mhss commented Jul 9, 2024

Thank you, It works perfectly now. Your help solved the problem. You're the best.

@acalcutt
Copy link
Collaborator

acalcutt commented Jul 9, 2024

was it the c++ redistributable?

@akram-mhss
Copy link
Author

yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants