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

razzle start: Cannot find module /build/assets.json #568

Closed
ipostol opened this issue Apr 7, 2018 · 3 comments
Closed

razzle start: Cannot find module /build/assets.json #568

ipostol opened this issue Apr 7, 2018 · 3 comments

Comments

@ipostol
Copy link

ipostol commented Apr 7, 2018

Hello,
Have some problem, when i am use razzle start i see error, its not critical after some time app up, but i think we can try fix this.

in start script

start.js

 // Compile our assets with webpack
 const clientCompiler = compile(clientConfig);

client compiler (he create assets.json file)

but server compiler call before and when we use some code on server like
start.js

const serverCompiler = compile(serverConfig);

server.js (custom)

const assets = require(process.env.RAZZLE_ASSETS_MANIFEST)

i think replace client compile before server with this problem

@jaredpalmer
Copy link
Owner

This is out in 2.0.0-alpha.8.

@drejohnson
Copy link

On 2.0.0-alpha.8 I'm still seeing this error.

@ipostol
Copy link
Author

ipostol commented Apr 10, 2018

@jaredpalmer , #575 in this PR fix for start server after webpack done hook (https://github.com/webpack/docs/wiki/plugins#donestats-stats)

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

3 participants