提供的源无法解析为值列表
以下错误消息:
🌐 The following error message:
The source provided ([...]) could not be parsed as a value list.当错误的语法传递给 FontFace API 时可能会发生。
🌐 can happen when the wrong syntax is passed to the FontFace API.
旧版本的 Chrome,包括在 Remotion Lambda 上运行的 Chrome 104,不支持不带引号的 FontFace 语法。
🌐 Older versions on Chrome, including Chrome 104 which runs in Remotion Lambda does not support the FontFace syntax without quotes.
❌ Without quotessrc: url(font.woff2) format(woff2);
✅ With quotessrc: url('font.woff2') format('woff2');
要解决这个问题,请始终包含引号。
使用 @remotion/fonts 来使用一个抽象,帮助你避免这个错误。
🌐 To fix the issue, always include quotes.
Use @remotion/fonts to use an abstraction that helps you avoid this mistake.