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

Fail to serve on NuxtJS #20

Open
xgenvn opened this issue Aug 18, 2020 · 3 comments
Open

Fail to serve on NuxtJS #20

xgenvn opened this issue Aug 18, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@xgenvn
Copy link

xgenvn commented Aug 18, 2020

Bug Report

Description

The guideline seems broken on Nuxt setup.

Minimal Reproduction

Fresh project from yarn create nuxt-app, using options:

  • SSR
  • ElementUI

Exception or Error

Must use import to load ES Module: <skip>/node_modules/vue-runtime-helpers/dist/normalize-component.mjs

Updated on 14/11/2020:

  • Above exception can be resolved by adding the libraries to nuxt.config.js transpile section:
  build: {
    transpile: [
      /^element-ui/,
      /^vue-runtime-helpers/,
      /@fext\/vue-form-builder/,
      /@fext\/vue-use/,
    ],
  },

However, it seems the composition api not working correctly (this/context)

image

Your Environment

Vue Version:

2.6.11

Vue Composition API:

1.0.0-beta.10

NuxtJS Version

2.14.0

Node Version

v12.18.3
@felixpy
Copy link
Member

felixpy commented Nov 13, 2020

Sorry, I have been busy with work recently. Need to provide a minimal project that can reproduce the problem, thank you.

@felixpy felixpy added the question Further information is requested label Nov 13, 2020
@xgenvn
Copy link
Author

xgenvn commented Nov 14, 2020

@felixpy I put the example integration on the repo: https://github.com/xgenvn/nuxt-form-builder-integration

@felixpy
Copy link
Member

felixpy commented Nov 15, 2020

@xgenvn This project use rollup-plugin-vue to build bundles. Unfortunately, according to official documents, a separate version needs to be built for SSR applications.

@felixpy felixpy added bug Something isn't working and removed question Further information is requested labels Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants