Skip to content

Cannot import into Nuxt project #462

Closed
@cameronweibel

Description

@cameronweibel

Description

Importing this plugin into a Nuxt project and building with npm run start (nuxt generate and nuxt start) is not possible.

Reproduction

Creating a page in Nuxt with the following code:

<template>
  <h1>Hi</h1>
</template>

<script>
import parserJava from "prettier-plugin-java";
</script>

And building, navigating to page, results in an error of:
TypeError: Cannot read property '1' of null at vn (a7816b4.js:2) at e.exports.e.initRecognizerEngine (a7816b4.js:2) at new e (a7816b4.js:2) at new e.exports (a7816b4.js:2) at Object.<anonymous> (a7816b4.js:2) at l (094da21.js:1) at Object.<anonymous> (a7816b4.js:2) at l (094da21.js:1) at Object.<anonymous> (a7816b4.js:2) at l (094da21.js:1)

nuxt-static-error.zip
Run npm i followed by npm run start in this project to see the issue. If you run npm run dev it works.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions