我有一个Gatsby v5项目使用了typescript,它无法编译,并且仅仅使用初始的gatsby new
命令就无法显示。
load plugins
dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
Referenced from: /Users/work/Desktop/website/project_file/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _pthread_jit_write_protect_supported_np
Referenced from: /Users/work/Desktop/website/project_file/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
Expected in: /usr/lib/libSystem.B.dylib
[1] 32594 killed gatsby develop
如果我注解掉以下插件:
'gatsby-plugin-sharp',
'gatsby-transformer-sharp',
在gatsby-config.ts
中运行gatsby develop
,显示基本应用程序的样板,但我在控制台中收到以下错误列表:
一个三个三个一个
1条答案
按热度按时间hc2pp10m1#
它似乎与
sharp
依赖关系有关。请尝试运行: