TheComputerM / svelte-materialify

A Material UI Design Component library for Svelte heavily inspired by vuetify.

Home Page:https://svelte-materialify.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UMD and IIFE output formats are not supported for code-splitting builds.

claudiojulioferraz opened this issue · comments

Hi, I followed the advanced installation tutorial, but I get the following error:

[!] Error: UMD and IIFE output formats are not supported for code-splitting builds.

Why is this happening?

update to version 0.3.9, it worked on my end :)

you're using a Slider, right?

It works if you add
inlineDynamicImports: true to output in rollup.config.js:

output: {
		sourcemap: true,
		format: 'iife',
		name: 'app',
		file: 'public/build/bundle.js',
		inlineDynamicImports: true
	},

in sapper you would need to do this for server and client.

We'll either document this or find a better solution, for now this should work.

It worked. Thank you! But I am not yet using a Slider

@claudiojulioferraz then import { Button } from "svelte-materialify/src"; should work without the above mentioned workaround. It might not work with import { Button } from "svelte-materialify";?

This solution also worked. But the other one seems to be cleaner. Thank you!