question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Global babelHelpers is not defined

See original GitHub issue

{"errorMessage":"babelHelpers is not defined","errorType":"ReferenceError","stackTrace":["/var/task/webpack:/node_modules/dropbox/es/dropbox-base.js:440:1","Module.t.read.u (/var/task/webpack:/node_modules/dropbox/es/dropbox-base.js:126:1)","r (/var/task/webpack:/webpack/bootstrap:19:1)","t.handler (/var/task/webpack:/src/lambdas/syncMapsOnline/index.ts:8:21)","invoke (/var/runtime/node_modules/awslambda/index.js:286:20)","InvokeManager.start (/var/runtime/node_modules/awslambda/index.js:151:9)","awslambda.waitForInvoke (/var/runtime/node_modules/awslambda/index.js:498:52)","Object.waitForInvoke (/var/runtime/node_modules/awslambda/build/Release/awslambda.js:84:5)","Object.<anonymous> (/var/runtime/node_modules/awslambda/index.js:498:11)","Module._compile (module.js:652:30)"]}

I’m less interested in this specific issue that I am facing. I just wanted to bring attention to the problem of using the global reference to babelHelpers which are not placed in the files that are using the global reference.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10

github_iconTop GitHub Comments

11reactions
josephmcaseycommented, Jun 4, 2018

Closing this ticket after further investigation shows too many quality issues to justify an investment of time. My apologies for any inconveniences.

5reactions
ryansmith94commented, Jul 24, 2019

I seem to have fixed this with the following (it ain’t pretty 🙈)

import { Dropbox } from '../../../node_modules/dropbox/dist/Dropbox-sdk.min';
Read more comments on GitHub >

github_iconTop Results From Across the Web

babelHelpers is not defined · Issue #9366 · babel/babel - GitHub
I create a hello world babel-plugin from Plugin Handbook , when I use jest to test the plugin with ES6 syntax like "import"....
Read more >
Webpack Uncaught ReferenceError: babelHelpers is not defined
My project is setup with webpack 4 and babel. To use the typesafe router i defined my routes. routes.ts import { route }...
Read more >
babelHelpers is not defined-babel.js - appsloveworld
It looks like you're using @babel/plugin-external-helpers . It'll prevent Babel from adding the required helper functions at the top of each file.
Read more >
global is not defined aws-sdk - You.com | The AI Search ...
I'm testing an Angular 6 app with AWS Cognito and noticed an error in my console. "Uncaught ReferenceError: global is not defined". After...
Read more >
babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found