Closed
Description
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.