-
-
Notifications
You must be signed in to change notification settings - Fork 71
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
yarn upgrade @asyncapi/html-template@0.28.4
yarn build # works
yarn serve # works
yarn upgrade @asyncapi/html-template@latest
yarn add react@^17.0.2 # peer dependency
yarn build # works?
yarn serve # blank pageI think that the problem is that the generated index.html looks like this (notice shema = undefined):
<body>
<div id="root"></div>
<script src="js/asyncapi-ui.min.js" type="application/javascript"></script>
<script>
const schema = undefined;
const config = {"show":{"sidebar":true},"sidebar":{"showOperations":"byDefault"}};
AsyncApiStandalone.hydrate({ schema, config }, document.getElementById("root"));
</script>
</body>I use the generator like this:
import Generator from "@asyncapi/generator"; // Version 1.14.1
const main = async () => {
const generator = new Generator(
"@asyncapi/html-template",
path.resolve(process.cwd(), `./dist`),
);
const yamlFile = await fsPromises.readFile(
path.resolve(__dirname, "./api-config.yaml"),
"utf-8",
);
await generator.generate(yamlFile);
};
main();Do you have any idea on how to fix? Or how to migrate from version 0.x to 1.x? I could not find any migration guide.
henhal, hoyon, zschumacher, mk-tng and VoidVolker
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working