在我的Gatsby with Sanity应用程序中运行npm run build时,我得到了以下错误 WebpackError: ReferenceError: window is not defined (from plugin: gatsby-plugi
n-styled-components) 似乎外部包gatsby-plugin-styled-components在某个地方使用了window,我尝试过用这里描述的一个虚拟模块来替换https://www.gatsbyjs.com/docs/debugging-html-builds/#fixing-third-party-mo
我在窗口运行码头时遇到了问题。我添加了eclipse中的jetty插件,但它可能会出错:
[WARNING] Error injecting: org.eclipse.jetty.maven.plugin.JettyRunMojo
java.lang.TypeNotPresentException: Type org.eclipse.jetty.maven.plugin.JettyRunM
ojo not present
at org.eclipse.sisu.space.URLClassSpace.loadClass(URLClassSpace.java:115
)
我运行的是typesafe激活器示例。
但是我用sbt而不是activator命令来编译它。即使我删除视图中的所有javascript,仍然存在错误。
错误如下:
当我运行它时,它会给我错误:
! @6gkhpk9fi - Internal server error, for (GET) [/] ->
play.PlayExceptions$AssetCompilationException: Compilation error[Internal Closur
e Compiler error (see logs)]
at play.core.jscom