Steps to reproduce:
- Install yarn.
- Run yarn build.
- Run a simple web server to serve the "dist/" folder and open a browser to see it.
- Once the page is loaded, there are errors in the browser console.
CodeTypeError: p(...)[t] is not a function
at t._createComponent (vendor.75ef41ee.js:5)
at t._createComponent (vendor.75ef41ee.js:315)
at t._createComponent (vendor.75ef41ee.js:5)
at t._renderLayoutManager (vendor.75ef41ee.js:315)
at t._renderLayout (vendor.75ef41ee.js:315)
at t._initMarkup (vendor.75ef41ee.js:315)
at t._initMarkup (vendor.75ef41ee.js:5)
at t._renderComponent (vendor.75ef41ee.js:5)
at t._updateDOMComponent (vendor.75ef41ee.js:5)
at t.endUpdate (vendor.75ef41ee.js:5)
- Click the button - it should show a pop-up window. This happens in development but fails in production.
Workaround:
Turn off treeshaking:
vite.config.ts
JSONexport default defineConfig({
...
build: {
rollupOptions: {
treeshake: false
}
},
...
});
is there any progress on that ? without treeshaking build size doubles
As vite is the new default with vue this becomes more and more important.
Here's another workaround while the team addresses this issue.
Add the following to the
defineConfig
invite.config.js
:resolve: { alias: { "devextreme/ui": 'devextreme/esm/ui' } },
credits go to: https://github.com/vitejs/vite/issues/6061#issuecomment-1015123903
Hello @all,
We're working on the fix. However, due to complexity of the issue, we're unable to provide you any estimates.
We'll keep this ticket updated once we have any news.
@Fran,
Thank you for sharing your workaround. We are greatly appreciate it.
Thanks,
Alexey