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

8.0.0-canary.14 bug #6136

Closed
steida opened this issue Jan 25, 2019 · 6 comments · Fixed by #6137
Closed

8.0.0-canary.14 bug #6136

steida opened this issue Jan 25, 2019 · 6 comments · Fixed by #6137
Assignees

Comments

@steida
Copy link
Contributor

steida commented Jan 25, 2019

Updated from 8.0.0-canary.10 with this result:

ERROR  Failed to compile with 1 errors                                                                 12:55:13 AM

 error  in ./node_modules/next/dist/client/next-dev.js

Module parse failed: Unexpected token (34:6)
You may need an appropriate loader to handle this file type.
|
|
> import('./noop');
| var _window = window,
|     assetPrefix = _window.__NEXT_DATA__.assetPrefix;

 @ multi ./node_modules/next/dist/client/next-dev

{ Error: Cannot find module '/Users/steida/dev/este/.next/build-manifest.json'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.loadComponents (/Users/steida/dev/este/node_modules/next-server/dist/server/load-components.js:13:9)
    at DevServer.renderToHTMLWithComponents (/Users/steida/dev/este/node_modules/next-server/dist/server/next-serve
r.js:194:48)
    at DevServer.renderErrorToHTML (/Users/steida/dev/este/node_modules/next-server/dist/server/next-server.js:224:
21)
    at DevServer.renderErrorToHTML (/Users/steida/dev/este/node_modules/next/dist/server/next-dev-server.js:107:26)
    at process._tickCallback (internal/process/next_tick.js:68:7) code: 'MODULE_NOT_FOUND' }
@timneutkens
Copy link
Member

timneutkens commented Jan 26, 2019

@steida that's interesting, could you provide a reproduction? As the tests passed just fine. Really curious to see what's going on here.

@timneutkens
Copy link
Member

@steida
Copy link
Contributor Author

steida commented Jan 26, 2019

It really is 😲

I tried suggested fix: Add "acorn": "^6.0.5", (need to purge node_modules then), and it works.

It happens in https://github.com/este/este/tree/e92ebee8ca75967903a74820e1cc504a3afee15a.

So I am closing it. Temp fix is weird but working.

@timneutkens
Copy link
Member

@steida we'll add acorn to Next.js's deps to be on the safe-side of things for when we launch v8.

@steida
Copy link
Contributor Author

steida commented Jan 28, 2019

Related #6167

@edwinwong90
Copy link

For my case, I just remove node_modules and package-lock.json and run npm install again, Its works. Related #6167

@lock lock bot locked as resolved and limited conversation to collaborators Feb 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants