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
Is your feature request related to a problem? Please describe.
When running the libary on Nodejs with ESM syntax the relative import paths need explicit file extensions in ECMAScript imports.
Describe the solution you'd like
Add ".js" to the local import. './Util/MapboxStyleUtil' >>> './Util/MapboxStyleUtil.js'
Additional context
Loadash is not ESM so the syntax needed is also something like import lodash from 'lodash'; const { invert } = lodash;
The text was updated successfully, but these errors were encountered:
Feature Request
Is your feature request related to a problem? Please describe.
When running the libary on Nodejs with ESM syntax the relative import paths need explicit file extensions in ECMAScript imports.
Describe the solution you'd like
Add ".js" to the local import.
'./Util/MapboxStyleUtil'
>>>'./Util/MapboxStyleUtil.js'
Additional context
Loadash is not ESM so the syntax needed is also something like
import lodash from 'lodash'; const { invert } = lodash;
The text was updated successfully, but these errors were encountered: