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
https://github.com/MatrixCross/React-Starter
build的时候莫名其妙报错,dev就没报错
[ Farm ] Failed to build: Error: Transform `src/index.tsx` failed. Error: Unexpected token, expected "," (12:33) SyntaxError: Unexpected token, expected "," (12:33)
我以为是这里的感叹号有问题
const root = createRoot(container!)
但是去掉之后又到另一个文件src/utils/storage.ts报错:
src/utils/storage.ts
[ Farm ] Failed to build: Error: Transform `src/utils/storage.ts` failed. Error: Unexpected reserved word 'interface'. (3:0) SyntaxError: Unexpected reserved word 'interface'. (3:0)
src/utils/storage.ts前面的代码是:
import localforage from 'localforage' interface StorageData<T> { value: T expire: number | null }
System: OS: Windows 11 10.0.22631 CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13500H Memory: 5.12 GB / 31.73 GB Binaries: Node: 20.10.0 - D:\Program Files\nodejs\node.EXE Yarn: 1.22.21 - D:\Program Files\nodejs\yarn.CMD npm: 10.2.3 - D:\Program Files\nodejs\npm.CMD pnpm: 8.12.1 - D:\Program Files\nodejs\pnpm.CMD Browsers: Edge: Chromium (122.0.2365.66) Internet Explorer: 11.0.22621.3527 npmPackages: @farmfe/core: ^1.1.12 => 1.1.12
The text was updated successfully, but these errors were encountered:
duplicate #1328
#1328 (comment)
Sorry, something went wrong.
No branches or pull requests
Steps to reproduce
Reproduce link
https://github.com/MatrixCross/React-Starter
What is actually happening?
build的时候莫名其妙报错,dev就没报错
我以为是这里的感叹号有问题
但是去掉之后又到另一个文件
src/utils/storage.ts
报错:src/utils/storage.ts
前面的代码是:System Info
The text was updated successfully, but these errors were encountered: