Haul: Cannot GET /index.bundle

Created on 6 Oct 2017  路  4Comments  路  Source: callstack/haul

Hello. I tried to use haul with fresh install of RN 0.49.1 but I got this error

Most helpful comment

A simple workaround for 0.49:

module.exports = (_, {output, module}) => ({
    entry: './index.js',
    output: {
        ...output,
        filename: 'index.bundle',
    },
});

All 4 comments

Hey @jurajkrivda, thanks for creating this issue.

RN 0.49 has introduced a breaking change in file naming - 5d4c6e5

Will look into it soon

A simple workaround for 0.49:

module.exports = (_, {output, module}) => ({
    entry: './index.js',
    output: {
        ...output,
        filename: 'index.bundle',
    },
});

There is also another error:
Expected Content-type to be 'application/javascript' or 'text/javascript', but got 'application/octet-stream; charset=UTF-8'.

This can be fixed by adding headers: {'Content-Type': 'application/javascript'} to webpackDevMiddleware config in src/server/index.js.

Thanks, fixed in #246

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xareelee picture xareelee  路  5Comments

ellereeeee picture ellereeeee  路  3Comments

GeeWee picture GeeWee  路  5Comments

jounii picture jounii  路  5Comments

satya164 picture satya164  路  7Comments