Closed Chi1985 closed 6 years ago
If you are using spin.js v3, you'll need to use a module bundler like Rollup or Webpack to support Firefox and IE, since they don't support native ES6 modules.
I'm getting the following error when i try to to bundle my main.ts file using rollup
my rollup.config.js
import { enableProdMode } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module'; import { environment } from './environments/environment'; import{Spinner} from 'spin.js';
if (environment.production) { enableProdMode(); }
"import { AppModule } from './app/app.module';" corresponds to ./app/app.module.ts file It would be great if somebody can tell me how to bundle' ts ' file or any workaround for this?
or should i use 'spin.js' as entry in my rolllup.config.js file? if so what should be the full path for spin.js
That error doesn't have anything to do with spin.js. If you have issues with Rollup and TypeScript, I'd recommend searching for a tutorial on how to use them together, or asking on Stack Overflow.
Hi, I'm using Spin.js in angular application to show spinner on button click. It is working fine in chrome but not in IE11 and firefox. If i open the url "http://spin.js.org/" in IE or firefox it is loading the spinner. Should i make any config changes while using it in angular app?