-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
package.json missing a main key #125
Comments
jude
added a commit
to jude/leaflet.browser.print
that referenced
this issue
May 7, 2023
Igor-Vladyka
pushed a commit
that referenced
this issue
Jun 26, 2023
Great, thanks. |
Hello, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
require("leaflet.browser.print")
is failing to find the leaflet.browser.print module.If I add a
main': 'dist/leaflet.browser.print.js
key/value to package.json, the module is found.As per https://docs.npmjs.com/cli/v9/configuring-npm/package-json#main, main defaults to index.js in the package's root folder. but there is no index.js in this module.
To Reproduce
require('package.browser.print')
line in your project's index.js fileExpected behavior
Screenshots
n/a
Desktop (please complete the following information):
n/a
Smartphone (please complete the following information):
n/A
Additional context
This is a 1 line fix that I'll submit an PR for momentarily.
The text was updated successfully, but these errors were encountered: