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.

Custom builder and --why

See original GitHub issue

Running size-limit on react-dropzone throws an error:

$ size-limit --why
 ERROR  Error: 
ERROR in ./src/index.js
Module parse failed: /Users/okonet/Projects/OSS/react-dropzone/src/index.js Unexpected token (266:17)
You may need an appropriate loader to handle this file type.
|   }
| 
|   renderChildren = (children, isDragActive, isDragAccept, isDragReject) => {
|     if (typeof children === 'function') {
|       return children({
 @ multi ./src/index.js
    at runWebpack.then.stats (/Users/okonet/Projects/OSS/react-dropzone/node_modules/size-limit/index.js:150:15)
    at <anonymous>
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Looking at code I could not find babel-loader. Is this project suppose to only be used with ES5 code?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
asotogcommented, Oct 13, 2017

I have same issue, my project’s javascripts are using spread operator and is throwing error

Module parse failed: /Users/alejandrosoto/Downloads/github-repos/crafter-social-rui/src/js/main.js Unexpected token (8:25)
You may need an appropriate loader to handle this file type.
0reactions
aicommented, Aug 11, 2019

Size Limit 2.0 was released with modular architecture. Now we have a better UI to explain that --why will not work for a custom builder.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top Six Reasons to Choose a Custom Home Builder
With a custom home builder, you get to decide what options are important to you and what things you don't need. You get...
Read more >
Production Versus Custom Home Builders
A production builder can usually deliver the same size home for less money than a custom builder. The reasons lie in volume purchasing...
Read more >
What is a Custom Home Builder? - Sleeping Dog Properties, Inc.
A custom home builder is a design build firm who is involved in a home's entire design-and-construction process, all the way from the ......
Read more >
Custom Builder: Custom Building Products & News
Custom Builder magazine provides breaking news, industry trends, product innovations, and best practices for the custom home building market.
Read more >
5 Reasons to Hire a Custom Builder to Construct Your Home
A custom home builder will have the suitable building materials, expertise, and knowledge of using them. They know what works and what doesn't...
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