我在angular2+中使用angular2+模板,并试图找到将库导入到试图访问window的组件中的解决方案。Javascript服务使用服务器端预呈现,因此不能将库导入到组件中,这些组件在没有获得窗口的情况下立即尝试访问窗口是没有定义错误的。有人知道如何在客户端上加载库,并将其传递给组件以避免在将窗口导入组件时未定义错误?const dat = require('dat.gui');
我有问题,以获得一个网站,以正确运行在一个码头集装箱。容器构建良好并运行,但是当导航到页面时,它在加载JavaScript服务时失败。FROM microsoft/aspnetcore-build:2.0 AS builderRUN update-ca-certificates
RUN npm config set cafile company_cas
Could not load file or assembly 'Sitecore.JavaScriptServices.AppServices, Version=13.0.0.0, Culture=neutralException Details: System.IO.FileNotFoundException: Could not load file or assembly 'Sitecore.JavaScriptServices.AppServicesAssembly Load Trace: The following inform