We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import.meta.glob
当执行包括import.meta.glob的构建时出错:
var PRESERVED = import.meta.glob("/src/pages/(_app|404).{jsx,tsx}", { eager: true }); var MODALS = import.meta.glob("/src/pages/**/[+]*.{jsx,tsx}", { eager: true }); var ROUTES = import.meta.glob( ["/src/pages/**/[\\w[-]*.{jsx,tsx,mdx}", "!/src/pages/**/(_!(layout)*(/*)?|_app|404)*"], { eager: true } );
错误信息:
[ building ] ⠄ transform (189) ../../node_modules/.pnpm/[email protected]/node_modules/core-js/internals/array-iteration.js.farm-runtime [ Farm ] Error: Failed to build: Error: Hook `process_module` execute failed for module `D:\Temp\Code\nodejs2\generouted\node_modules\.pnpm\@[email protected][email protected][email protected][email protected]__react@_majqdi4ud6jxgzhjc46q7ikpdi\node_modules\@generouted\react-router\dist\index.js`. Original error: Some(GenericError("Error when glob /src/pages/(_app|404).{jsx,tsx}: BuildError { kind: Parse(ParseError { expression: \"src/pages/(_app|404).{jsx,tsx}\", locations: [ErrorEntry { fragment: \"(_app|404).{jsx,tsx}\", location: 10, kind: Nom(Eof) }] }) }\nError when glob /src/pages/**/[\\w[-]*.{jsx,tsx,mdx}: BuildError { kind: Parse(ParseError { expression: \"src/pages/**/[/w[-]*.{jsx,tsx,mdx}\", locations: [ErrorEntry { fragment: \"[/w[-]*.{jsx,tsx,mdx}\", location: 13, kind: Nom(Eof) }] }) }\nError when glob /src/pages/**/(_!(layout)*(/*)?|_app|404)*: BuildError { kind: Parse(ParseError { expression: \"src/pages/**/(_!(layout)*(/*)?|_app|404)*\", locations: [ErrorEntry { fragment: \"(_!(layout)*(/*)?|_app|404)*\", location: 13, kind: Nom(Eof) }] }) }")). ELIFECYCLE Command failed with exit code 1.
No response
成功构建
System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz Memory: 1.39 GB / 15.84 GB Binaries: Node: 18.17.1 - D:\Program Files\nodejs\node.EXE Yarn: 1.22.19 - D:\node_stores\npm\packages\yarn.CMD npm: 9.6.7 - D:\Program Files\nodejs\npm.CMD pnpm: 9.4.0 - D:\node_stores\npm\packages\pnpm.CMD Browsers: Chrome: 122.0.6261.112 Edge: Spartan (44.19041.1266.0), Chromium (119.0.2151.72) Internet Explorer: 11.0.19041.1566 npmPackages: @farmfe/core: ^1.3.12 => 1.3.12
The text was updated successfully, but these errors were encountered:
["/src/pages/**/[\\w[-]*.{jsx,tsx,mdx}", "!/src/pages/**/(_!(layout)*(/*)?|_app|404)*"] 这个里面的 glob 语法 import.meta.glob 暂时还不支持。暂时可以考虑换种 glob 写法呢
["/src/pages/**/[\\w[-]*.{jsx,tsx,mdx}", "!/src/pages/**/(_!(layout)*(/*)?|_app|404)*"]
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
当执行包括
import.meta.glob
的构建时出错:错误信息:
Reproduce link
No response
What is actually happening?
成功构建
System Info
The text was updated successfully, but these errors were encountered: