typography
typography copied to clipboard
build error(Unexpected token (Note that you need plugins to import files that are not JavaScript))
build error(Unexpected token (Note that you need plugins to import files that are not JavaScript))
package.json
{
"name": "nuxt-app",
"private": true,
"scripts": {
"build": "nuxt build",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
"postinstall": "nuxt prepare"
},
"devDependencies": {
"@element-plus/nuxt": "^1.0.5",
"@nuxt-themes/typography": "^0.11.0",
"@nuxt/content": "^2.6.0",
"@nuxtjs/color-mode": "^3.2.0",
"@types/node": "^18",
"@vueuse/core": "^10.1.2",
"@vueuse/nuxt": "^10.1.2",
"element-plus": "^2.3.4",
"nuxt": "^3.4.3"
}
}
i run npm run generate
.get this error.
> generate
> nuxt generate
Nuxi 3.4.3 01:11:57
Nuxt 3.4.3 with Nitro 2.4.0 01:11:57
WARN Using experimental payload extraction for full-static output. You can opt-out by setting experimental.payloadExtraction to false. 01:11:57
WARN Using <NuxtLayout> inside app.vue will cause unwanted layout shifting in your application.Consider removing <NuxtLayout> from app.vue and using it in your pages. @nuxt/content 01:11:59
ℹ Building client... 01:12:00
ℹ vite v4.3.5 building for production... 01:12:00
ℹ ✓ 1712 modules transformed. 01:12:06
ℹ .nuxt/dist/client/manifest.json 29.36 kB │ gzip: 2.63 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseImg.018721e2.css 0.05 kB │ gzip: 0.07 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/Icon.28016ff0.css 0.07 kB │ gzip: 0.09 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseEm.26a085fc.css 0.08 kB │ gzip: 0.09 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseA.2881db85.css 0.11 kB │ gzip: 0.10 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseStrong.263d77e1.css 0.11 kB │ gzip: 0.11 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseHr.c7c78bbe.css 0.13 kB │ gzip: 0.10 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseLi.ac05b421.css 0.15 kB │ gzip: 0.13 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTr.65bec588.css 0.16 kB │ gzip: 0.11 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ChooseYourPath.27f42dd3.css 0.21 kB │ gzip: 0.17 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseP.945916cd.css 0.24 kB │ gzip: 0.16 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/note.a6de3e83.css 0.25 kB │ gzip: 0.18 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/tip.da023a01.css 0.25 kB │ gzip: 0.19 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/IconCSS.b5e1ed11.css 0.26 kB │ gzip: 0.17 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTd.cd8fde4d.css 0.27 kB │ gzip: 0.16 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTh.4e8fa436.css 0.35 kB │ gzip: 0.19 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTable.c65fbffe.css 0.36 kB │ gzip: 0.22 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseThead.332c0b8a.css 0.37 kB │ gzip: 0.16 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseOl.987a3cd5.css 0.38 kB │ gzip: 0.20 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseUl.a51ada81.css 0.38 kB │ gzip: 0.20 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH5.ad165fe2.css 0.46 kB │ gzip: 0.23 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH6.98a17339.css 0.46 kB │ gzip: 0.23 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/CodeGroup.773ffb8e.css 0.46 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH1.e1e961cd.css 0.50 kB │ gzip: 0.25 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH2.e253cafd.css 0.50 kB │ gzip: 0.25 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH3.8da2d137.css 0.50 kB │ gzip: 0.25 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH4.f75faa9e.css 0.50 kB │ gzip: 0.25 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseBlockquote.fa85f476.css 0.61 kB │ gzip: 0.24 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseCodeInline.dc767424.css 0.70 kB │ gzip: 0.25 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/TabsHeader.d080fec1.css 1.64 kB │ gzip: 0.47 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/index.34afce53.css 1.90 kB │ gzip: 0.61 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/error-500.82e14f63.css 2.31 kB │ gzip: 0.78 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseCode.c324a1f0.css 3.19 kB │ gzip: 0.88 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/error-404.97011ca1.css 4.23 kB │ gzip: 1.18 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/docs.1458f0c0.css 13.70 kB │ gzip: 2.32 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/entry.9a25f84d.css 27.41 kB │ gzip: 4.95 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/DocumentDrivenNotFound.d8841f67.js 0.16 kB │ gzip: 0.15 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseHr.7e58bdb4.js 0.18 kB │ gzip: 0.17 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/default.d89ba78f.js 0.19 kB │ gzip: 0.17 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTbody.0061453d.js 0.19 kB │ gzip: 0.17 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseCodeInline.61c672fa.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseStrong.cfa6e66f.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseP.71ec1849.js 0.23 kB │ gzip: 0.20 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTh.4b6b9e6f.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTr.591208d9.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseOl.3c8f3e4c.js 0.23 kB │ gzip: 0.20 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseUl.fbafe316.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseLi.7861ebb7.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTd.d17c1c3e.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseEm.9edcf368.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseThead.4798f5d4.js 0.23 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseBlockquote.e1cfa025.js 0.24 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/config.8992922e.js 0.27 kB │ gzip: 0.21 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseTable.72e3832f.js 0.28 kB │ gzip: 0.24 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/DocumentDrivenEmpty.f153699c.js 0.29 kB │ gzip: 0.24 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/Markdown.6a122b68.js 0.33 kB │ gzip: 0.26 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseA.2fbba488.js 0.43 kB │ gzip: 0.30 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/_...slug_.11860230.js 0.53 kB │ gzip: 0.34 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/note.4137c573.js 0.54 kB │ gzip: 0.40 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/tip.8b6ee494.js 0.54 kB │ gzip: 0.40 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/debug.805a4549.js 0.58 kB │ gzip: 0.43 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/head.a82bed00.js 0.59 kB │ gzip: 0.36 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseImg.7d857059.js 0.61 kB │ gzip: 0.39 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ChooseYourPath.e6fd438e.js 0.66 kB │ gzip: 0.50 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/document-driven.04ce0911.js 0.74 kB │ gzip: 0.44 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH5.ee4645ed.js 0.81 kB │ gzip: 0.46 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH4.521537d5.js 0.81 kB │ gzip: 0.46 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH1.64c1c962.js 0.81 kB │ gzip: 0.46 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH3.15ff3ec8.js 0.81 kB │ gzip: 0.46 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH2.7cfdb1e1.js 0.81 kB │ gzip: 0.46 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseH6.fddf1205.js 0.81 kB │ gzip: 0.46 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ContentNavigation.024b69d6.js 0.86 kB │ gzip: 0.51 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ContentList.64e55d2d.js 0.87 kB │ gzip: 0.48 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/IconCSS.5578b615.js 0.89 kB │ gzip: 0.54 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ContentSlot.84445da8.js 0.97 kB │ gzip: 0.57 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/CodeGroup.8ae0d2fe.js 1.11 kB │ gzip: 0.56 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/error-component.581553c8.js 1.12 kB │ gzip: 0.61 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/TabsHeader.edde0bba.js 1.16 kB │ gzip: 0.70 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ContentRenderer.969d1f2f.js 1.21 kB │ gzip: 0.61 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ContentDoc.2cbf2585.js 1.46 kB │ gzip: 0.69 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/components.567c9294.js 1.51 kB │ gzip: 0.68 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/error-500.740f0db7.js 1.87 kB │ gzip: 0.99 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/error-404.c6383df5.js 2.22 kB │ gzip: 1.15 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ContentQuery.faf2ee99.js 2.23 kB │ gzip: 0.92 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/asyncData.d1fcb24c.js 2.25 kB │ gzip: 1.01 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/index.da2f4093.js 3.89 kB │ gzip: 2.77 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ProseCode.a7e9a869.js 4.85 kB │ gzip: 2.32 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/client-db.afffb4b6.js 18.49 kB │ gzip: 7.80 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/Icon.65d6900b.js 21.16 kB │ gzip: 8.07 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/ContentRendererMarkdown.e1b47627.js 22.35 kB │ gzip: 7.94 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/docs.a2830e7f.js 67.63 kB │ gzip: 23.45 kB 01:12:06
ℹ .nuxt/dist/client/_nuxt/entry.3d47128c.js 215.73 kB │ gzip: 79.28 kB 01:12:06
ℹ ✓ built in 6.20s 01:12:06
✔ Client built in 6247ms 01:12:06
ℹ Building server... 01:12:06
ℹ vite v4.3.5 building SSR bundle for production... 01:12:06
ℹ ✓ 1032 modules transformed. 01:12:10
ℹ ✓ built in 3.97s 01:12:10
ERROR Unexpected token (Note that you need plugins to import files that are not JavaScript) 01:12:10
file: C:/Users/10539/workspace/source/pulsar-cn/node_modules/@nuxt-themes/typography/components/global/ProseBlockquote.vue?vue&type=style&index=0&scoped=364586e2&lang.ts?inline&used:1:11
1: blockquote{font-family:var(--typography-font-body);margin:var(--prose-blockquote-margin);padding-inline-start:var(--p...
^
ERROR Unexpected token (Note that you need plugins to import files that are not JavaScript) 01:12:10
at error (/C:/Users/10539/workspace/source/pulsar-cn/node_modules/rollup/dist/es/shared/node-entry.js:2125:30)
at Module.error (/C:/Users/10539/workspace/source/pulsar-cn/node_modules/rollup/dist/es/shared/node-entry.js:13452:16)
at Module.tryParse (/C:/Users/10539/workspace/source/pulsar-cn/node_modules/rollup/dist/es/shared/node-entry.js:14163:25)
at Module.setSource (/C:/Users/10539/workspace/source/pulsar-cn/node_modules/rollup/dist/es/shared/node-entry.js:13765:39)
at ModuleLoader.addModuleSource (/C:/Users/10539/workspace/source/pulsar-cn/node_modules/rollup/dist/es/shared/node-entry.js:23730:20)
How do I fix it?