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.

Failed to compile without any reason

See original GitHub issue

Current Behavior

I just install haul and initialize the project:

$ yarn add --dev haul
$ yarn run haul init

After running haul bundle command, the process was terminated without any error message.

$ ./node_modules/.bin/haul bundle --platform ios --dev false --bundle-output ios/jsbundle/main.jsbundle --assets-dest ios/jsbundle

 INFO  Haul is now bundling your React Native app in production mode.

Starting from:

iOS        [====================] 100%



 ERROR  Failed to compile
error Command failed with exit code 1.

I have no clue to fix this issue.

Expected Behavior

Succeed or show the reason for the error.

Haul Configuration (webpack.haul.js)

const path = require('path');

module.exports = ({ platform }) => ({
  entry: `./index.js`,
  resolve: {
    modules: [
      path.resolve('./packages'),
      path.resolve('../../packages'),
      path.resolve('./node_modules'),
    ],
  },
});

Your Environment

`

software version
Haul 1.0.0-beta.7
react-native 0.49.3
node 8.3.0
npm or yarn npm 5.4.1 & yarn 0.28.4

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
thymikeecommented, Oct 25, 2017

We should pass the actual error stack alongside the Failed to compile message.

0reactions
jukbencommented, Nov 7, 2017

@Titozzz Good catch, we should list what warnings exactly happened. I’ve created issue for it https://github.com/callstack/haul/issues/274

Do you have some example how to easily trigger a warning?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to find the reason for a failed Build without any error or ...
As suggested by MrMalith, close Visual Studio, delete the obj folder in your solution directory, clear your temporary folder, and then re-open ...
Read more >
Visual Studio Shows Build Failed But No Errors are Displayed
My Experience Explanation: This usually occurs when you install a library and some cached temp files are properly removed or remain in memory...
Read more >
Visual Studio 2019 Build Failed But No Errors are Displayed ...
Go to the Error list window and select 'Build Only' to filter; Go to Tools > Options > Projects and Solutions > Build...
Read more >
How to prevent failing to compile on CRA when eslint errors?
I installed the new react/CRA version (4). Right now when I have eslint errors the whole page blows and CRA fails to compile....
Read more >
Build Failed — but no reason! | Apple Developer Forums
Hi, I'm experiencing weird Xcode behavior. I'm getting "build failed" after some alterations to the code, but Xcode will NOT give me the...
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