Skip to content
New issue

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

parse importmap in index.html failed #81

Open
tjx666 opened this issue Dec 9, 2022 · 2 comments
Open

parse importmap in index.html failed #81

tjx666 opened this issue Dec 9, 2022 · 2 comments

Comments

@tjx666
Copy link

tjx666 commented Dec 9, 2022

Describe the bug

image

image

        <script type="importmap">
            {
                "imports": {
                    "date-fns": "https://esm.dancf.com/npm:[email protected]/index.js",
                    "lodash": "https://esm.dancf.com/npm:[email protected]/lodash.js",
                    "nativebird": "https://esm.dancf.com/npm:[email protected]/promise.mjs",
                    "path-to-regexp": "https://esm.dancf.com/npm:[email protected]/index.js",
                    "pinia": "https://esm.dancf.com/npm:[email protected]/dist/pinia.mjs",
                    "qs": "https://esm.dancf.com/npm:[email protected]/dist/qs.js",
                    "vue": "https://esm.dancf.com/npm:[email protected]/dist/vue.runtime.esm.js",
                    "vue-demi": "https://esm.dancf.com/npm:[email protected]/lib/index.mjs",
                    "vue-router": "https://esm.dancf.com/npm:[email protected]/dist/vue-router.esm.js",
                    "vuedraggable": "https://esm.dancf.com/npm:[email protected]/dist/vuedraggable.umd.js"
                },
                "scopes": {
                    "https://esm.dancf.com/": {
                        "@vue/devtools-api": "https://esm.dancf.com/npm:@vue/[email protected]/lib/esm/index.js",
                        "@vue/reactivity": "https://esm.dancf.com/npm:@vue/[email protected]/dist/reactivity.esm-bundler.js",
                        "@vue/runtime-core": "https://esm.dancf.com/npm:@vue/[email protected]/dist/runtime-core.esm-bundler.js",
                        "@vue/runtime-dom": "https://esm.dancf.com/npm:@vue/[email protected]/dist/runtime-dom.esm-bundler.js",
                        "@vue/shared": "https://esm.dancf.com/npm:@vue/[email protected]/dist/shared.esm-bundler.js",
                        "sortablejs": "https://esm.dancf.com/npm:[email protected]/modular/sortable.esm.js",
                        "vue": "https://esm.dancf.com/npm:[email protected]/dist/vue.runtime.esm-bundler.js"
                    }
                }
            }
        </script>

Libarary Info(please complete the following information):

  • "vite": "^3.2.5",
  • "vite-plugin-imp": "^2.3.1"

To Reproduce

  1. add importmap to index.html
  2. vite build

Expected behavior

No error when build.

** Error message**
Paste the error message here.

Additional context

What is importmaps: https://github.com/WICG/import-maps

@tjx666
Copy link
Author

tjx666 commented Dec 10, 2022

Fixed in my self version: tjx666@598e242

@tjx666 tjx666 closed this as completed Dec 10, 2022
@tjx666 tjx666 reopened this Dec 10, 2022
@psaren
Copy link
Contributor

psaren commented Dec 27, 2022

Fixed in my self version: tjx666@598e242

PR Welcome!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants