Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Cannot find module './mock/web-streams-polyfill' #46

Closed
florian-lefebvre opened this issue Feb 27, 2021 · 5 comments
Closed

Cannot find module './mock/web-streams-polyfill' #46

florian-lefebvre opened this issue Feb 27, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@florian-lefebvre
Copy link

florian-lefebvre commented Feb 27, 2021

Versions

nuxt-vite: ^0.0.16
nuxt: ^2.14.12

Reproduction

https://github.com/florian-lefebvre/nuxt-vite-issues-46

Description

In SSR mode, it takes as much time to build as if the module wasn't there.

@florian-lefebvre florian-lefebvre added the bug Something isn't working label Feb 27, 2021
@florian-lefebvre
Copy link
Author

My bad I didn't see it requires Nuxt 2.15

@florian-lefebvre
Copy link
Author

It would also be good to highlight it in the documentation.

@florian-lefebvre florian-lefebvre changed the title nuxt-vite is not taken into account Cannot find module './mock/web-streams-polyfill' Feb 27, 2021
@florian-lefebvre
Copy link
Author

Hovewer I encountered another issue:

 ERROR  Cannot find module './mock/web-streams-polyfill'                                                                                                                                                      22:54:01  
Require stack:
- F:\CONTENT\DEVELOPPEMENT\WEB\TESTS\reproduction repos\nuxt-vite-issues-46\node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js
- F:\CONTENT\DEVELOPPEMENT\WEB\TESTS\reproduction repos\nuxt-vite-issues-46\node_modules\nuxt-vite\dist\nuxt-vite.js
- F:\CONTENT\DEVELOPPEMENT\WEB\TESTS\reproduction repos\nuxt-vite-issues-46\node_modules\@nuxt\core\dist\core.js

  Require stack:
  - node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js
  - node_modules\nuxt-vite\dist\nuxt-vite.js
  - node_modules\@nuxt\core\dist\core.js
  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
  at Function.a [as resolve] (node_modules\jiti\dist\v8cache.js:2:2400)
  at bundle (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:245:59)
  at ViteBuilder.build (node_modules\nuxt-vite\dist\nuxt-vite.js-vite.js:284:12)
  at Builder.build (node_modules\@nuxt\builder\dist\builder.js:327:30)
  at async Object._buildDev (node_modules\@nuxt\cli\dist\cli-dev.js:107:5)
  at async Object.startDev (node_modules\@nuxt\cli\dist\cli-dev.js:65:7)
  at async Object.run (node_modules\@nuxt\cli\dist\cli-dev.js:52:5)
  at async NuxtCommand.run (node_modules\@nuxt\cli\dist\cli-index.js:413:7)

@pi0
Copy link
Member

pi0 commented Feb 27, 2021

Can you please try v17? :D Sorry i'm iterating fast some regressions happen in between

@florian-lefebvre
Copy link
Author

It works now 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants