-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
Cannot find module '@babel/runtime/core-js/object/define-property' #140
Comments
to be precise I require it: const Gitlab = require('gitlab/dist/es5').default
const gitlab = new Gitlab({
url: 'https://git.my-company.com',
token: 'xxx'
}); |
I had the same issue. I will end up upgrading to node v8 and using the ES6 version, and therefore bypass the issue, but here is a hint to help you along the way if you need to stick with ES5. I noticed the following lines in
If you look for these files in
Make sure that whatever changes you make, you make a pull-request and you meet all PR requirements (passing tests, etc). Good luck! |
If it's just a question of not being able to use the
|
@jag-tus 's workaround works Does anyone know why this update broke ES5 support? It was pretty frustrating having it work one day and break the next |
My guess would be something changed in |
It looks like re-building and re-publishing might fix it. |
Indeed, if I clone the project and rebuild it then it works. This is pretty annoying. @jdalrymple please rebuild and push updated version 🙏 In the meantime here's what i have: create a if [ -d "./node-gitlab" ]; then
rm -rf ./node-gitlab
fi
git clone https://github.com/jdalrymple/node-gitlab.git
cd node-gitlab
npm install
npm run build make it executable:
Add this to your package.json:
Then change your dependency to your local copy:
And finally |
Or just
Might work |
Will do ASAP!! Sorry for all the trouble everyone :( |
I broke something. Still looking into it. For whatever reason, the release stage is failing due to a missing module that doesnt seem to be missing on the test or lint stages. https://travis-ci.org/jdalrymple/node-gitlab/jobs/413361700 |
This issue is blocking, and seems a little harder to fix than expected. Even rolling back to older versions of the Would you please consider forcing the version of Edit : For those interested, as a workaround forcing the |
Yup that seems like a smarter idea. I'll make the change today |
Hmm, not really sure why this isnt working. I set all the babel related packages to
Any other suggestions? Sorry for the all the hassle! |
May be related to this version of npm/node. Testing with v10.0.0 |
So after restricting it to v10.0.0 It passed the lint and test stages, but still fails with that error on release. 🙃 |
I've also rerun the same job multiple times and have gotten different errors inconsistently ... |
Asking the travis team: travis-ci/travis-ci#9965 |
If you're using yarn you can add a "resolutions": {
"@babel/runtime": "7.0.0-beta.55"
} |
Still no suggestions from the travis team. I guess il start stripping the build process to narrow down where the problem may be. |
Can confirm that forcing the @babel/runtime version to 7.0.0-beta.55 in our own package.json as a temporary fix solved it (we're not using Travis in any way). |
It ended up being caused by the cached npm folder |
Does the var @babel/runtime/core-js/object/define-property error persist with the rc1 release of babel? |
# [3.8.0](3.7.0...3.8.0) (2018-08-14) ### Bug Fixes * **api:** Updating project members all function to include the inherited members. [#141](#141) ([e081a16](e081a16)) * **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.0 ([dc9748d](dc9748d)) * **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.1 ([12b6ca1](12b6ca1)), closes [#139](#139) * **package:** Updating packages and fixing [#140](#140) due to a babel update ([04d1769](04d1769)) ### Features * Add push rule service ([#143](#143)) ([395f83c](395f83c)) * Add transfer a project to a new namespace ([#145](#145)) ([87e9f55](87e9f55))
Reopen if its still an issue!! :D |
# [3.8.0](jdalrymple/gitbeaker@3.7.0...3.8.0) (2018-08-14) ### Bug Fixes * **api:** Updating project members all function to include the inherited members. [jdalrymple#141](jdalrymple#141) ([e081a16](jdalrymple@e081a16)) * **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.0 ([dc9748d](jdalrymple@dc9748d)) * **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.1 ([12b6ca1](jdalrymple@12b6ca1)), closes [jdalrymple#139](jdalrymple#139) * **package:** Updating packages and fixing [jdalrymple#140](jdalrymple#140) due to a babel update ([04d1769](jdalrymple@04d1769)) ### Features * Add push rule service ([jdalrymple#143](jdalrymple#143)) ([395f83c](jdalrymple@395f83c)) * Add transfer a project to a new namespace ([jdalrymple#145](jdalrymple#145)) ([87e9f55](jdalrymple@87e9f55))
# [3.8.0](jdalrymple/gitbeaker@3.7.0...3.8.0) (2018-08-14) ### Bug Fixes * **api:** Updating project members all function to include the inherited members. [jdalrymple#141](jdalrymple#141) ([e081a16](jdalrymple@e081a16)) * **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.0 ([dc9748d](jdalrymple@dc9748d)) * **package:** update [@semantic-release](https://github.com/semantic-release)/npm to version 5.0.1 ([12b6ca1](jdalrymple@12b6ca1)), closes [jdalrymple#139](jdalrymple#139) * **package:** Updating packages and fixing [jdalrymple#140](jdalrymple#140) due to a babel update ([04d1769](jdalrymple@04d1769)) ### Features * Add push rule service ([jdalrymple#143](jdalrymple#143)) ([395f83c](jdalrymple@395f83c)) * Add transfer a project to a new namespace ([jdalrymple#145](jdalrymple#145)) ([87e9f55](jdalrymple@87e9f55))
Just updated to
3.7.0
and as soon as i importgitlab/dist/es5
, I get:I'm using node
v8.7.0
The text was updated successfully, but these errors were encountered: