nx-console icon indicating copy to clipboard operation
nx-console copied to clipboard

Nx Console Generate (UI) tab displaying raw HTML instead of generator options UI in Webstorm

Open jschwarty opened this issue 1 year ago • 3 comments

Current Behavior

When selecting a Generator from the Generate (UI) panel the Generate tab opens up and just displays the following HTML:

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Generate UI</title>
  <link href="output.css" rel="stylesheet">
</head>
<body class="intellij-scrollbar">
<script src="api.js"></script>

<script src="main.js" type="module"></script>
<root-element></root-element>
</body>
</html>
Screenshot 2024-06-07 at 7 36 45 AM

Expected Behavior

The Generate tab should display the UI for the Generator schema options.

Steps to Reproduce

Install any version of Webstorm. Install the Nx Console plugin. Open an Nx project and try to use the Generate (UI).

Failure Logs / Images / Videos

Unhandled exception in [ComponentManager(ProjectImpl@2120388552), CoroutineName(dev.nx.console.generate.ui.file.V2NxGenerateUiFileCoroutineHolder), StandaloneCoroutine{Cancelling}@78ba2b25, Dispatchers.Default]

com.intellij.ui.jcef.JBCefBrowserJsCallError: Failed to execute JavaScript expression in JCEF browser. TypeError: Cannot read properties of undefined (reading 'registerPostToIdeCallback')
	at com.intellij.ui.jcef.JBCefBrowserJsCall$createErrorHandlerQueryWithinScope$2$1.invoke(JBCefBrowserJsCall.kt:231)
	at com.intellij.ui.jcef.JBCefBrowserJsCall$createErrorHandlerQueryWithinScope$2$1.invoke(JBCefBrowserJsCall.kt:229)
	at com.intellij.ui.jcef.JBCefBrowserJsCall.createErrorHandlerQueryWithinScope$lambda$12$lambda$11(JBCefBrowserJsCall.kt:229)
	at com.intellij.ui.jcef.JBCefJSQuery$1.onQuery(JBCefJSQuery.java:123)
	Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@2120388552), CoroutineName(dev.nx.console.generate.ui.file.V2NxGenerateUiFileCoroutineHolder), StandaloneCoroutine{Cancelled}@78ba2b25, Dispatchers.Default]

Environment

  • OS: MacOS Sonoma 14.5 (Apple M1 Pro)
  • Nx Console version: 1.25.0
  • Webstorm version: 2024.1.3

jschwarty avatar Jun 07 '24 14:06 jschwarty