__vite_ssr_import_2__.createMemoryHistory is not a function on RC.9 RC.10
See original GitHub issueEnvironment
- Operating System:
Darwin
- Node Version:
v18.9.0
- Nuxt Version:
2.15.8
- Nitro Version:
0.5.3
- Package Manager:
yarn@1.22.19
- Builder:
webpack
- User Config:
ssr
,components
,nitro
,css
,modules
,runtimeConfig
,googleAnalytics
,vueuse
,windicss
- Runtime Modules:
nuxt-icon@0.1.5
,nuxt-windicss@2.5.2
,nuxt-full-static@0.2.1
,@nuxt/image-edge@1.0.0-27719579.87dcdf2
,@pinia/nuxt@0.4.2
- Build Modules:
-
- Device: Mac M1
- Homebrew 3.6.1
Reproduction
- git clone https://github.com/viandwi24/nuxt3-awesome-starter.git
- yarn install
- yarn dev
Describe the bug
no response
Additional context
no response
Logs
[nuxt] [request error] [unhandled] [500] __vite_ssr_import_2__.createMemoryHistory is not a function
at ./node_modules/nuxt/dist/pages/runtime/router.mjs:42:256
at fn (./node_modules/nuxt/dist/app/nuxt.mjs:128:27)
at Object.callAsync (/Users/bonn/Documents/node_modules/unctx/dist/index.mjs:49:19)
at callWithNuxt (./node_modules/nuxt/dist/app/nuxt.mjs:130:23)
at applyPlugin (./node_modules/nuxt/dist/app/nuxt.mjs:74:29)
at Module.applyPlugins (./node_modules/nuxt/dist/app/nuxt.mjs:84:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async createNuxtAppServer (./node_modules/nuxt/dist/app/entry.mjs:30:7)
at async default (./node_modules/@nuxt/vite-builder/dist/runtime/vite-node.mjs:31:18)
at async Object.renderToString (./node_modules/vue-bundle-renderer/dist/runtime.mjs:172:19)
Issue Analytics
- State:
- Created a year ago
- Comments:7 (6 by maintainers)
Top Results From Across the Web
history.createBrowserHistory is not a function in Jest test using ...
Use this code fix error, This function is not defined when jest in run. import { createBrowserHistory } from "history" const history ...
Read more >How to use createMemoryHistory function in history - Tabnine
test("Nav - successfully navigates around", () => { const history = createMemoryHistory();
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
Let’s move it to https://github.com/nuxt/framework/issues/7609. @richardeschloss nice guess about
vite-node
issue 💚We might tuneRelated to #7573 in both cases can reproduce if there is a parent node_modules.options.node_modules
. @richardeschloss is it possible to make a github repo with above setup of nuxt 2 + nuxt 3 in same monorepo?