question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

__vite_ssr_import_2__.createMemoryHistory is not a function on RC.9 RC.10

See original GitHub issue

Environment


  • 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

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:closed
  • Created a year ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pi0commented, Sep 16, 2022

Let’s move it to https://github.com/nuxt/framework/issues/7609. @richardeschloss nice guess about vite-node issue 💚

1reaction
pi0commented, Sep 16, 2022

We might tune options.node_modules. @richardeschloss is it possible to make a github repo with above setup of nuxt 2 + nuxt 3 in same monorepo? Related to #7573 in both cases can reproduce if there is a parent node_modules.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found