-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Problem importing packages on meteor 3.0-beta.7 #13091
Comments
I wonder if it is not this issue: #11727 |
Thanks for the answering. Not export field in the package.json and using just check that are using babel with CJS dependencies, so I will assume it's CJS. |
Could you provide a concise repository with the necessary code and setup to replicate the issue? |
Another thing you can try is to recompile the package with Meteor. You put something like this into {
"meteor": {
"nodeModules": {
"recompile": {
"filestack-js": true
}
}
}
} |
Yes, here it is
I've tried but still having the same issues |
Could you try @StorytellerCZ's solution but following the docs? I think you need to specify the bundles. |
Tried setting ['legacy', 'client'] too and have the same problem, don't know if it's what you're referring about. |
Thanks for sharing the reproduction.
EDIT: Removing the package-lock.json fixed it. So I can repro now. I will be back with an ansewer if I find something. I get another error though, but I think is caused by the same. Maybe a workaround is to import the package directly in your HTML using a <script> tag and as an asset. Then, after the script loads, call the attached keplerGl functionality directly from the window object. <!-- Load Kepler.gl -->
<script src="https://unpkg.com/kepler.gl@3.0.0/umd/keplergl.min.js" crossorigin></script> |
Sorry for the inconvenience with the package-lock, we use a private npm repository as proxy and I think I upload the file with that references. Yes as you're right is the same error but with another import of the library.
As workaround could be an option, for now I'm not in that ship as previous version of kepler works with current stable meteor version, this was just a test to adapt our codebase for the next meteor version. |
Have you tested the kepler version you use in Meteor 2.x on 3.x? I understand you tried upgrading kepler to the new 3.x, but testing the previous version in 3.x and failing might mean a regression any on the bundler somehow. |
Yes, the previous version of kepler is correctly working with Meteor 3.x Up to what I'm able to check in their repo and their changelog, they didn't update their babel version (7.X.X) or the build process (apart from move from a solo dependency Do you think its some bundle problem with Meteor or should I open an issue in their repo? |
Giving some update to keep track of it |
I've got an update. Successfully ran the project using Meteor, thanks to your provided repo. The issue isn't with Meteor itself, but rather with the beta version 3 of the kepler library. It has complex dependencies. Your repository lacked some dependencies in package.json. Referencing the dependencies from the kepler demo app for version 3, I copied them into your project and installed them using Here's a screenshot of your app in action. While your app might not need all the dependencies from the example app, some are essential for kepler to work well with the new version. Otherwise, errors like the one described in this git issue may occur. I haven't delved deeper into which ones are necessary, but my aim was to confirm whether Meteor 3's bundler has issues with certain modules, which seems to not be the case. |
Thanks for the answer @nachocodoner , unfortunately I'm facing the same errors after changing the dependencies with the ones in the demo app from kepler (the same link you shared in your answer) I also noticed in your screenshot that meteor-node-stubs are missing from the package.json, I have to install it before been able to start the meteor app, it could be that your project are resolving dependencies differently than mine? |
The installation of
Have you tried to re-generate the Did you ensure you use node To enforce the node/npm version that you meteor app uses you might use it with meteor prefixed, as You also miss the |
Still not lucky. I don't know what could happens (I also update the demo repo with the changes in the package-lock and src files), but looks is something on my side. |
I'm trying to use meteor3 (Windows 11 with WSL) to create an App with Kepler.GL 3 (minimun Node version 18)
Currently using the meteor 3.0-beta7 for this.
When trying to create the basic app based on the kepler's demo app, I'm getting multiple errors on importing packages.
Just showing one as example
I'm importing it in my code
And at least VSCode is correctly finding the dependency as show below
I have tried to use another Kepler.GL example with same result but different packages.
Thanks in advance.
The text was updated successfully, but these errors were encountered: