Missing vue-server-renderer/basic module on build
See original GitHub issueBug 🐞
What is the current behavior?
Currently after building my app, the vue cli shows the following error:
warning in ./node_modules/vue-instantsearch/dist/vue-instantsearch.esm.js
Module not found: Error: Can't resolve 'vue-server-renderer/basic' in 'C:\code\classpass\app\node_modules\vue-instantsearch\dist'
Does this happen only in specific situations? And What is the version you are using?
This only happened right after I upgraded dependencies for algolia related items:
- algoliasearch
- from 4.2.0 to 4.3.0
- vue-instantsearch
- from 2.7.0 to 3.1.0
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:13 (6 by maintainers)
Top Results From Across the Web
`Module not found: 'vue-server-renderer'` - Stack Overflow
It seems that we have to install the two packages: the vue-server-renderer and then the @vue/server-test-utils .
Read more >@vue/server-renderer | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >@vue/compat - npm
Overview. @vue/compat (aka "the migration build") is a build of Vue 3 that provides configurable Vue 2 compatible behavior.
Read more >Server-Side Rendering - Vite
Vite provides built-in support for server-side rendering (SSR). The Vite playground contains example SSR setups for Vue 3 and React, which can be...
Read more >Rendering a list of Vue components - Learn web development
This is a built-in Vue directive that lets us include a loop inside of our template, repeating the rendering of a template feature...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, sorry to hijack this conversation but i think this could be helpful: The easiest way to solve this is by using webpack externals in your projects:
In a Laravel Mix configuration file you can do so like this:
I’m seeing a similar issue with the same
vue-server-renderer/basic
, but it’s only a warning, not an error:The resulting app bundle still seems to work, but it’s just showing this warning.
I’ve setup a minimal repo with Laravel Mix (same as my production setup) if this helps: https://github.com/saltymouse/algolia-vue-instantsearch-module-warning