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.

Experimental version bugs

See original GitHub issue

I’m submitting a bug report

Webpack Version: 3.8.1

Babel Core Version: 7.0.0-beta.5

Babel Loader Version: 7.1.2

Please tell us about your environment: OSX 10.12

Current behavior: When running webpack after following the setup instructions it errors saying it cannot find “@babel/env”. Should the require be “@babel/preset-env” instead? When I change it to “@babel/preset-env” it errors out saying; Cannot find module babel-helper-regex'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
hzoocommented, Nov 1, 2017

updated the readme

0reactions
jowycommented, Nov 15, 2017

Here’s an example of my babel-loader config. I do not use .babelrc since I have a few different webpack files and find it easier to control babel granularly this way:

{
  test: /\.js$/i,
  use: {
    loader: 'babel-loader',
    options: {
      compact: true,
      babelrc: false,
      presets: [
        ['@babel/env', {
          targets: {
            browsers: [
              'last 2 versions',
              'not IE <= 10',
            ],
          },
        }],
        '@babel/preset-react',
      ],
      plugins: [
        ['graphql-tag'],
        ['styled-components', {
          displayName: false,
        }],
        ['transform-object-rest-spread'],
        ['@babel/transform-modules-commonjs', {}],
      ],
    },
  },
  exclude: /node_modules/,
},

Note the options.babelrc: false and defining an empty object for the @babel/transform-modules-commonjs placeholder.

This seems to fix the plugin, however it’s just a workaround. Hope this helps someone! 😃

This however does not seem to fix scripts that rely on .babelrc… I am currently fighting that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.18 Experimental Generation Bugs and Constructive Criticism
First Large Issue is Badlands or Mesa biome they appear to regularly spawn in random or buggy ways, as show in the pictures...
Read more >
[WEB-5641] Can't create a bug report for the most recent 1.19 ...
I found a bug in the latest experimental snapshot for 1.19, but am unable to select that version. How to reproduce:.
Read more >
Experimental Version - FlyByWire Simulations Documentation
The Experimental version is a test version to find problems, issues and to ... When reporting a bug or strange behavior that we...
Read more >
1.18 Bedrock Experimental Problem - Minecraft Feedback
In the latest 1.18 snapshot/experimental version on Bedrock Edition the only way ... Bugs & support issue posts are removed with regularity, ...
Read more >
Steam Beta [experimental] thread (to discuss improvement ...
This version is constantly being updated with new optimizations ... Steam Beta [experimental] thread (to discuss improvement, bugs & issues).
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