Skip to content
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

webpack build error #128

Open
zanjs opened this issue Dec 27, 2017 · 9 comments
Open

webpack build error #128

zanjs opened this issue Dec 27, 2017 · 9 comments

Comments

@zanjs
Copy link

zanjs commented Dec 27, 2017

ERROR in app.6d3a54eaa463666161b3.js from UglifyJs
Unexpected token: punc ()) [./node_modules/mini-toastr/mini-toastr.js:12,0][app.6d3a54eaa463666161b3.js:245,14]

@zanjs zanjs changed the title webpack build err webpack build error Dec 27, 2017
@zhenhappy
Copy link

I have same program

@priyank780
Copy link

Same problem with latest version. Any solution or workaround?

@ahmad-nasikin
Copy link

i have same problem

@pdelacruz86
Copy link

any solution for this?

@zhenhappy
Copy link

rollback old version

@gegana
Copy link

gegana commented Feb 27, 2018

Also experiencing same issue. I'm using babel es2016, stage-0, and polyfill. Downgrading to 0.6.6 resolved the issue.

@zhenhappy
Copy link

zhenhappy commented Mar 10, 2018

edit webpack.base.conf

{
  test: /\.js$/,
  loader: 'babel-loader',
  include: [
    resolve('src'),
    resolve('test'),
    resolve('node_modules/mini-toastr')
  ]
}

@se-panfilov
Copy link
Owner

First of all - I'll fix it soon.

This issue related to ES6, basically for now you have to do translation es6->es5 for mini-toastr

@RealWeeks
Copy link

RealWeeks commented Jul 13, 2018

If you end up here after trying to track down an webpackjasonp is not defined(I only saw this while using internet explorer) error and trace it back to mini-toastr. Just use babel for to translate it to es5

@zhenhappy solution close to what i needed .

{
          test: /\.js$/,
          exclude: /node_modules\/(?!(mini-toastr)\/).*/ ,
          use: {
            loader: 'babel-loader',
            options: {
              presets: ['env']
            }
          }
        }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants