We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db70fdc commit 1644abbCopy full SHA for 1644abb
1 file changed
plugins/dev-create/templates/typescript-plugin/template/test/index.ts
@@ -36,9 +36,9 @@ document.addEventListener('DOMContentLoaded', function () {
36
const defaultOptions = {
37
toolbox: toolboxCategories,
38
};
39
- createPlayground(
40
- document.getElementById('root'),
41
- createWorkspace,
42
- defaultOptions,
43
- );
+ const rootElement = document.getElementById('root');
+ if (!rootElement) {
+ throw new Error(`div with id 'root' not found`);
+ }
+ createPlayground(rootElement, createWorkspace, defaultOptions);
44
});
0 commit comments