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

togeojson doesn't work with Electron 17.1.0 #175

Closed
tris-g opened this issue Mar 11, 2022 · 1 comment
Closed

togeojson doesn't work with Electron 17.1.0 #175

tris-g opened this issue Mar 11, 2022 · 1 comment

Comments

@tris-g
Copy link

tris-g commented Mar 11, 2022

Hi, I'm trying to use togeojson on an Electron app using npm i @mapbox/togeojson --save --build-from-source with env variables set for Electron build. However it isn't finding togeojson:

Uncaught Error: Cannot find module 'togeojson'

If someone could help that would be great. Thanks.

@tris-g
Copy link
Author

tris-g commented Mar 11, 2022

I needed to do require('@mapbox/togeojson')

@tris-g tris-g closed this as completed Mar 11, 2022
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