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

Updates on using Ionic/Stencil with Vite #3118

Closed
darrylnoakes opened this issue Oct 21, 2021 · 2 comments
Closed

Updates on using Ionic/Stencil with Vite #3118

darrylnoakes opened this issue Oct 21, 2021 · 2 comments

Comments

@darrylnoakes
Copy link

darrylnoakes commented Oct 21, 2021

For developers using Ionic Framework, we do have plans to use this custom elements output, but we will be doing that (at least for Vue initially) in Framework v6.

Originally posted by @liamdebeasi in #2827 (comment)

(I cannot post on the original Issue as it has been "locked and limited to collaborators".)

Any news with this?
I was getting the same issue, which I resolved (mostly) by upgrading from @ionic/vue from 5.4.0 to next (I assume a v6 beta).
In the browser, I now just get CSS map file 404 warnings (which I got with Ionic 5.4.0 + Vite as well, but not Ionic 5.4.0 + Vue CLI) instead of a wall of red errors.

On the command line, I now get just this, instead of a bunch of semi-fatal errors:

4:16:16 PM [vite] warning: 
D:/[REDACTED]/node_modules/.vite/chunk-PBLCSFVJ.js
1837|      return module[exportName];
1838|    }
1839|    return import(
   |                  ^
1840|      /* webpackInclude: /\.entry\.js$/ */
1841|      /* webpackExclude: /\.system\.entry\.js$/ */
The above dynamic import cannot be analyzed by vite.
See https://github.com/rollup/plugins/tree/master/packages/dynamic-import-vars#limitations for supported dynamic import formats. If this is intended to be left as-is, you can use the /* @vite-ignore */ comment inside the import() call to suppress this warning.        

  Plugin: vite:import-analysis
  File: D:/[REDACTED]/node_modules/.vite/chunk-PBLCSFVJ.js?v=13a8507c

As far as I can make out, it works, and Vite is epic, but I'm not fully comfortable with using Ionic 6 Beta without knowing a bit more about its status.

@ionitron-bot ionitron-bot bot added the triage label Oct 21, 2021
@johnjenkins
Copy link
Contributor

give this a +1 :D

@splitinfinities
Copy link
Contributor

Yes, please signal boost @johnjenkins PR please!

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

3 participants