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

useRuntimeConfig is not a function (webpack) #14341

Closed
gsmeira opened this issue Jul 18, 2022 · 1 comment · Fixed by nuxt/framework#5398 or nuxt/framework#5987
Closed

useRuntimeConfig is not a function (webpack) #14341

gsmeira opened this issue Jul 18, 2022 · 1 comment · Fixed by nuxt/framework#5398 or nuxt/framework#5987
Assignees

Comments

@gsmeira
Copy link

gsmeira commented Jul 18, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.15.1
  • Nuxt Version: 3.0.0-rc.6
  • Package Manager: yarn@1.22.19
  • Builder: webpack
  • User Config: ssr, builder
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  • npx nuxi init nuxt-app
  • cd nuxt-app
  • yarn add -D @nuxt/webpack-builder
  • add to nuxt.config.js: builder: 'webpack' / ssr: false
  • yarn build
  • yarn preview

Describe the bug

Just start and access the server after build the application. The page will be blank and in console It's possible to see the following error:

Uncaught TypeError: (0 , e.useRuntimeConfig) is not a function

Screenshot from 2022-07-18 19-34-05

Additional context

No response

Logs

No response

@danielroe
Copy link
Member

Reproduction: https://stackblitz.com/edit/github-16wtui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants