Open Strdate opened 2 years ago
I've not used the new Meteor Vite integration. My guess is it's that. Is there a different way to import Meteor packages in Vite?
Thanks for your answer. Unfortunately I have no idea. I'm struggling to understand how Vite even works.
I made it work by editing vite.config.js
and excluding the dependencies:
import { defineConfig } from 'vite';
import solidPlugin from 'vite-plugin-solid';
import solidSvg from "vite-plugin-solid-svg";
export default defineConfig({
plugins: [solidPlugin(), solidSvg({
defaultExport: 'component',
})],
meteor: {
clientEntry: 'imports/ui/main.jsx',
},
optimizeDeps: {
exclude: [
'meteor/tracker',
'meteor/meteor',
'meteor/mongo'
],
}
});
After adding this package, the application fails to build with following errors. Do you have any idea why it could happen?
Meteor packages file:
package.json: