一直在尝试使用parcel为我的反应应用程序设置apollo-client.事情很好,但在控制台中,有很多关于我的CI管道中node_modules/apollo-client中缺少源文件的警告.
尝试清除纱线缓存,删除node_modules并重新安装.但这些警告是持久的.我可能会遗漏包裹或巴贝尔配置的东西.找到了一些提示,但它们是特定于webpack的.
以下是日志:
?? Could not load source file "../../src/data/store.ts" in source map of "../node_modules/apollo-client/data/store.js".
?? Could not load source file "../../src/util/Observable.ts" in source map of "../node_modules/apollo-client/util/Observable.js"
.
?? Could not load source file "../../src/core/QueryManager.ts" in source map of "../node_modules/apollo-client/core/QueryManager.js".
?? Could not load source file "../../src/data/mutations.ts" in source map of "../node_modules/apollo-client/data/mutations.js".
?? Could not load source file "../../src/scheduler/scheduler.ts" in source map of "../node_modules/apollo-client/scheduler/scheduler.js".
?? Could not load source file "../../src/data/queries.ts" in source map of "../node_modules/apollo-client/data/queries.js".
?? Could not load …Run Code Online (Sandbox Code Playgroud)