-
-
Notifications
You must be signed in to change notification settings - Fork 12
UnhandledPromiseRejectionWarning: Error: You have declared using "bundled" babelHelpers #43
Comments
Thanks for this @ivandotv This is another error caused by bundling, that will be fixed when we move to a TS-only extraction process in this PR: #29 That PR is our top priority right now - we're testing it this week. See comments in other issues: #21 and #23. But let's try to find a workaround. Do you have a babel.config.js knocking about? |
Actually I do ( I should have mentioned that earlier) const pkg = require('./package.json')
const childProcess = require('child_process')
const pkgVersion = `${
process.env.PKG_VERSION || pkg.version
}-${childProcess.execSync('git rev-parse --short HEAD')}`
module.exports = {
presets: ['next/babel'],
plugins: [
['inline-react-svg'],
[
'transform-define',
{
__VERSION__: pkgVersion,
__DEV__: process.env.NODE_ENV !== 'production'
}
]
]
} This is on top of nextjs babel config. |
Our current rollup-based machine extractor sometimes reads from babel.config.js, so playing with commenting out things in your config may yield some results. Obviously, that may not be a sufficient workaround. If you can't find a workaround here, it might be worth waiting until #29 is in. We'll be releasing it on a @next branch and I'll make sure to notify you. |
I can't mess around with the |
in my case the problem was conflict between i'm using webpack for app bundling, so the solution was not to use in my
|
I'm using nextjs framework, and this is the error that I get when trying to generate the code.
UnhandledPromiseRejectionWarning: Error: You have declared using "bundled" babelHelpers, but transforming /home/user/path.to.machine/file.ts resulted in "runtime". Please check your configuration.
packages:
[email protected]
[email protected]
[email protected]
The text was updated successfully, but these errors were encountered: