Skip to content

Fail to serve on NuxtJS #20

Open
Open
@xgenvn

Description

@xgenvn

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions