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

The externalPlugins example in README does not build for production #36

Open
oMoMa opened this issue Mar 3, 2024 · 1 comment
Open

Comments

@oMoMa
Copy link

oMoMa commented Mar 3, 2024

Mnimal reproduction link

Steps to reproduce:

  1. Cancel the default terminal script (it's the nuxt stackblitz instance)
  2. do npm run build
  3. do npm run preview

Expected: The application runs normally.
Result: runtime error. The "extend" function fails. saying t is not a function.

@kensongzhu
Copy link

Had the same issue, currently transipling the dayjs in build works on my end

export default defineNuxtConfig({
  // ... other stuff

  build:{
    transpile: [/dayjs/]
  }
})

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

No branches or pull requests

2 participants