You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
// Vendors// Angular 2import"@angular/platform-browser-dynamic";import"@angular/platform-browser";import"@angular/core";import"@angular/http";import"@angular/router";// RxJS 5import"rxjs/Rx";// Importing materialize.import"materialize-loader";import"materialize-css";// For vendors for example jQuery, Lodash, angular2-jwt import them here// Also see src/typings.d.ts as you also need to run `typings install x` where `x` is your module
The text was updated successfully, but these errors were encountered:
For those who also get this problem, the solution that worked for me was to remove the webpack.ProvidePlugin for jQuery from the webpack config, and replace it with the following line in my main typescript file:
import 'jquery';
also installing the following package gives you proper type hinting in the IDE:
npm install @types/jquery
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am having an issue getting the materialize.js to load.
After adding import
'materialize-css';
, i am still getting the following error:TypeError: jQuery(...).collapsible is not a function
Here is a previous issue that could be related, that did not solve my problem. #3
Here is my webpack file:
Here is my
vendor.browser.ts
file.The text was updated successfully, but these errors were encountered: