Microbundle: Empty output and no error message

Created on 25 Jun 2018  Â·  6Comments  Â·  Source: developit/microbundle

Hi folks! 👋

I am trying to setup microbundle for my project, but looks like I am missing something 😅

Nothing comes out of the output for microbundle build, as for microbundle watch the process just dies (with no error message either)

⟩ yarn run start
yarn run v1.5.1
$ microbundle watch
Watching source, compiling to dist:
✨  Done in 1.35s.


⟩ yarn run build
yarn run v1.5.1
$ microbundle
Build output to dist:

✨  Done in 1.14s.

I have the following setup in my package.json :

{
  "main": "dist/index.js",
  "umd:main": "dist/index.umd.js",
  "module": "dist/index.m.js",
  "source": "src/index.js",
}

btw, this project uses // @flow, not sure if its related at all

enhancement question

Most helpful comment

might want to try again with the new version, has some fixes with error reporting

All 6 comments

Hi there - skip build, it's just microbundle. I think adding build there is looking for build.js.

might want to try again with the new version, has some fixes with error reporting

Nice! I will give it a try with the latest version 😃

It might be worth us adding a build command just to catch this case and report a friendly error. Definitely some weird output. Or we could detect the case where no input files are matched and print something saying "no entry files matched".

it looks like #120 fixed that 👌
just tested against my project, error message is very clear 💯

Nice :+1:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aaronjensen picture aaronjensen  Â·  16Comments

omgovich picture omgovich  Â·  16Comments

pascalduez picture pascalduez  Â·  12Comments

smithki picture smithki  Â·  19Comments

Andarist picture Andarist  Â·  17Comments