We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've the following code:
<script> const importMap = { imports: { "jquery.fancytree/": "./node_modules/jquery.fancytree/", "monaco-editor/": "./node_modules/monaco-editor/", "@node-projects/web-component-designer": "./node_modules/@node-projects/web-component-designer/dist/index.js", "@node-projects/web-component-designer/": "./node_modules/@node-projects/web-component-designer/", "@adobe/css-tools": "./node_modules/@adobe/css-tools/dist/index.mjs", "dock-spawn-ts/": "./node_modules/dock-spawn-ts/", "@node-projects/base-custom-webcomponent/": "./node_modules/@node-projects/base-custom-webcomponent/", "@node-projects/base-custom-webcomponent": "./node_modules/@node-projects/base-custom-webcomponent/dist/index.js", "@node-projects/lean-he-esm/": "./node_modules/@node-projects/lean-he-esm/", "@iobroker/socket-client/": "./node_modules/@iobroker/socket-client/", "@iobroker/socket-client": "./node_modules/@iobroker/socket-client/dist/esm/index.js", "tslib": "./node_modules/tslib/tslib.es6.mjs", } }; //@ts-ignore importShim.addImportMap(importMap); </script>
works perfectly, but when I extract the importmap like this:
<script type="importmap-shim" src="./dist/frontend/importmaps/importmap-config.json"></script>
it will be loaded by the browser but not be used.
it will work, if I paste the json directly into the
<script type="importmap-shim"> tag
The text was updated successfully, but these errors were encountered:
When you use <script type="importmap-shim"> you must also use <script type="module-shim"> as this runs the project in "shim mode", not polyfill mode.
<script type="importmap-shim">
<script type="module-shim">
Sorry, something went wrong.
I did use this:
<script type="module"> importShim('./dist/frontend/runtime/controls.js'); </script>
I'll try the other mode
No branches or pull requests
I've the following code:
works perfectly, but when I extract the importmap like this:
it will be loaded by the browser but not be used.
it will work, if I paste the json directly into the
The text was updated successfully, but these errors were encountered: