-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
Warning when try to import '@gitbeaker/rest' #3230
Comments
Odd. From the docs, it seems to say that the module itself does not exist? Do you receive the same errors with different imports ie Projects, Issues, etc? Is it just the Gitlab one? |
Following up, any more information? |
It's only this library. Other libraries and project structures don't have this warning. |
Hmm, im not sure. Though i doubt it would change, have you tried updating the library version youre using, or perhaps refreshing your package-lock or yarn-lock file? |
Hi! Just starting using this SDK and I am getting a very similar error: I suspect that the two error messages are occurrences of the same bug, only in @merorafael's case in the context of a node environment and in mine when using the package within a browser environment. This is likely due to this open issue on gitbeaker/packages/rest/package.json Lines 28 to 34 in 56c2540
The error can be silenced by adding: ...
"type": "module",
... to Alternate solutions suggested in the issue in |
Thanks for the additional info! Ill see if i can find some custom eslint resolvers that i could utilize |
I put an example in a public repository here. If you need to test, you must clone this repository and run |
Awesome thank you! This week is a rough one on my end, but i will get to it by at least the weekend! |
Okay few ways to resovle this:
As @tbazin mentioned, this is because the eslint resolver just doesnt support export keyword as of yet. |
File d/contract.py", line 4, in how can I solve the issue |
@nawaz-malla Can you provide more information. It looks like the code you included is python.. |
from beaker import * app = Application("External Example App") @app.external |
Again...thats python. |
how can i solve , i am following some videos , they use beaker, I am using same code but I face the issue. algokit doctor |
@nawaz-malla Feel free to open a new issue with a template project to outline your problem |
Description
The eslint shows the warning message below
"@gitbeaker/rest" is not found. eslint[node/no-missing-import]
(node/no-missing-import) when trying to importGitLab
from@gitbeaker/rest
.Steps to reproduce
Import
GitLab
from@gitbeaker/rest
using the structure below:It is not relevant information, but the eslint settings use
oclif
andoclif-typescript
rules.Expected behaviour
No warnings when importing the
@gitbeaker/rest
Actual behaviour
Warning node/no-missing-import on
@gitbeaker/rest
module.Possible fixes
Checklist
The text was updated successfully, but these errors were encountered: