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
I'm trying your tool and running npx @pika/web does not produce any web_modules directory.
The guess is the fact it's related to the way I need to call the import when it's not a module
My initial imports look like import Map from 'ol/Map.js';
You can find a repository to try out the sample I'm using at the following repository https://github.com/ThomasG77/pika-web-ol as it can be related to my code and not your tool.
The text was updated successfully, but these errors were encountered:
I've actually been bitten by this too, it would be good for the output to show the number of dependencies installed. Also, maybe warn if none are handled.
To get better output today, put this in your package.json:
Then you'll get the correct warnings, that neither of these dependencies export an ES Module. From the README:
By default, @pika/web will install all package.json dependencies with an ES "module" entrypoint to the web_modules/ directory. @pika/web is able to handle any legacy Common.js/Node.js transitive dependencies in your dependency tree, however the top-level dependencies (the ones that you import directly) must have a "module" entrypoint.
Ok. Thanks @FredKSchott for your feedback. It seems I will need to wait that the libraries I want to use support module *.mjs files. At least, I'm able to understand the failure :)
I'm trying your tool and running
npx @pika/web
does not produce any web_modules directory.The guess is the fact it's related to the way I need to call the import when it's not a module
My initial imports look like
import Map from 'ol/Map.js';
You can find a repository to try out the sample I'm using at the following repository https://github.com/ThomasG77/pika-web-ol as it can be related to my code and not your tool.
The text was updated successfully, but these errors were encountered: