I'm trying out a migration from systemjs to webpack for the first time. In my app I had something like this:
import {appSettings} from "AppSettings";
Where AppSettings was just a file with a const, not actually a module:
export const appSettings = {
somethings: {
}
};
This works with systemjs, not with webpack. Anything I can do to fix that?
If you're trying to import one of your own modules you should use a relative path:
import {appSettings} from "./AppSettings";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With