You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to run vitepress build docs when there exists a file docs/**/arguments.md results in a crash.
$ yarn vitepress build docs
yarn run v1.22.19
$ /home/.../website/node_modules/.bin/vitepress build docs
vitepress v1.0.0-alpha.4
⠇ building client + server bundles...[vite:esbuild-transpile] Transform failed with 1 error:
arguments.md.js:21:4: ERROR: Declarations with the name "arguments" cannot be used in strict mode
Declarations with the name "arguments" cannot be used in strict mode
19 |return _sfc_setup ? _sfc_setup(props, ctx) : undefined
20 | };
21 | var arguments = /*#__PURE__*/pluginVue_exportHelper._export_sfc(_sfc_main, [['ssrRender',_sfc_ssrRender]]);| ^
22 |
23 | exports.__pageData = __pageData;
✖ building client + server bundles...
[vite:esbuild-transpile] Transform failed with 1 error:
assets/arguments.md.88297d47.js:14:4: ERROR: Declarations with the name "arguments" cannot be used in an ECMAScript module
Declarations with the name "arguments" cannot be used in an ECMAScript module
12 |return (openBlock(), createElementBlock("div", null, _hoisted_2))
13 | }
14 | var arguments = /*#__PURE__*/_export_sfc(_sfc_main, [['render',_sfc_render]]);| ^
15 |
16 |export { __pageData, arguments as default };
build error:
Error: Transform failed with 1 error:
arguments.md.js:21:4: ERROR: Declarations with the name "arguments" cannot be used in strict mode
at failureErrorWithLog (/home/.../website/node_modules/esbuild/lib/main.js:1615:15)
at /home/.../website/node_modules/esbuild/lib/main.js:1404:29
at /home/.../website/node_modules/esbuild/lib/main.js:669:9
at handleIncomingPacket (/home/.../website/node_modules/esbuild/lib/main.js:766:9)
at Socket.readFromStdout (/home/.../website/node_modules/esbuild/lib/main.js:635:7)
at Socket.emit (node:events:527:28)
at addChunk (node:internal/streams/readable:315:12)
at readableAddChunk (node:internal/streams/readable:289:9)
at Socket.Readable.push (node:internal/streams/readable:228:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23) {
errors: [
{
detail: undefined,
id: '',
location: [Object],
notes: [Array],
pluginName: '',
text: 'Declarations with the name "arguments" cannot be used in strict mode'
}
],
warnings: [],
frame: '\n' +
'\x1B[33mDeclarations with the name "arguments" cannot be used in strict mode\x1B[39m\n' +
'19 | return _sfc_setup ? _sfc_setup(props, ctx) : undefined\n' +
'20 | };\n' +
"21 | var arguments = /*#__PURE__*/pluginVue_exportHelper._export_sfc(_sfc_main, [['ssrRender',_sfc_ssrRender]]);\n" +
' | ^\n' +
'22 | \n' +
'23 | exports.__pageData = __pageData;\n',
loc: {
column: 4,
file: 'arguments.md.js',
length: 9,
line: 21,
lineText: "var arguments = /*#__PURE__*/pluginVue_exportHelper._export_sfc(_sfc_main, [['ssrRender',_sfc_ssrRender]]);",
namespace: '',
suggestion: ''
},
code: 'PLUGIN_ERROR',
plugin: 'vite:esbuild-transpile',
hook: 'renderChunk'
}
Reproduction
To reproduce, create a file called arguments.md with any content inside the vitepress docs folder (or other target).
Then, run vitepress build <folder>, and the error will occur.
Expected behavior
The expected behaviour is to generate an arguments.html file.
Describe the bug
Attempting to run
vitepress build docs
when there exists a filedocs/**/arguments.md
results in a crash.Reproduction
To reproduce, create a file called
arguments.md
with any content inside the vitepressdocs
folder (or other target).Then, run
vitepress build <folder>
, and the error will occur.Expected behavior
The expected behaviour is to generate an
arguments.html
file.System Info
System: OS: Linux 5.18 Arch Linux CPU: (12) x64 AMD Ryzen 5 2600X Six-Core Processor Memory: 18.11 GB / 31.28 GB Container: Yes Shell: 5.9 - /usr/bin/zsh Binaries: Node: 16.16.0 - /usr/bin/node Yarn: 1.22.19 - /usr/bin/yarn npm: 8.14.0 - /usr/bin/npm Browsers: Chromium: 103.0.5060.134 npmPackages: vitepress: ^1.0.0-alpha.4 => 1.0.0-alpha.4
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: