Skip to main content

All Questions

Tagged with
0 votes
1 answer
433 views

materialize-css and rails 6- dropdown does not work

I always have this error: jquery.js:3428 Uncaught TypeError: $(...).dropdown is not a function This my rails 6 code: *app/javascript/packs/application.js: window.jQuery = $; window.$ = $; import ...
Yves Somda's user avatar
1 vote
1 answer
100 views

How to setup Weppack to use materializecss with Phoenix 1.5 + Liveviews?

Problem: I can not figure out how to embed materializecss into default scaffolded Elixir/Phoenix 1.5 (incl. Liveview)-Project. Every try to get it to work ends with errors. ie: jquery not found or ...
quax's user avatar
  • 61
0 votes
0 answers
146 views

In Webpack/module environment, Materialize CSS not working with jQuery

I have an application perfectly working with MaterializeCSS and jQuery installed via npm "jquery": "^3.5.0", "materialize-css": "^1.0.0-rc.2", I'm not using Webpack nor ES6 modules, instead I make a ...
Marco's user avatar
  • 789
3 votes
1 answer
534 views

Change $primary-color for materialize in Rails 6 project

I just got finished adding Materialize CSS to my Rails 6 project using this great guide: https://medium.com/@guilhermepejon/how-to-install-materialize-css-in-rails-6-0-0-beta2-using-webpack-...
patdev86's user avatar
0 votes
0 answers
103 views

Rail6-Webpack jQuery configuration for materialize navbar Dropdown working 0

Rail6-Webpack jQuery configuration for navbar Dropdown working 0 Ferran · Lecture 42 · a minute ago Rails version 6.0.2.2 Ruby version ruby 2.7.1 app/javascript/packs/...
coopeu's user avatar
  • 93
0 votes
2 answers
495 views

TypeError: c(...)(...).modal is not a function after built vue-cli project

I'm new in vuejs. I'm working in vue project using vue-cli I installed vue vue/cli with npm install -g @vue/cli I created a project with vue init webpack my-project I installed jQuery with npm ...
Puzzle29's user avatar
0 votes
3 answers
236 views

How to import an external library into a ReactJS Application (Locally)

I've a ReactJS application, and I'm using MaterializeCSS through react-materialize. I've installed react-materialized and added the references to MaterializeCSS files in my index.html file, as ordered:...
Marlon's user avatar
  • 1,875
7 votes
1 answer
10k views

React - Invariant Violation: Minified React error #130. ONLY in Production

Using React Materialize's TextInput component breaks my site only in production. In development it works fine. with no errors or warnings. I've seen some Stack posts about components not being ...
daniel blythe's user avatar
4 votes
0 answers
423 views

Materialize Module Build Failed: Invalid CSS / Expected Selector

I'm using Sage framework to build a WordPress site and would like to use a custom CSS framework, which is Materialize CSS. Sage uses Webpack to build the CSS. Upon building, I get the following ...
Kenny's user avatar
  • 2,154
1 vote
1 answer
230 views

CSS @import "~materlize-css" | Using Webpack | No style being made

I'm using Sage, a WordPress framework, and it lets you choose during creation some css frameworks, but I want to use Materialize CSS instead. It uses Webpack to build and combine the .scss files ...
Kenny's user avatar
  • 2,154
0 votes
0 answers
123 views

SideNav link does not appear inside navbar

I want to create an Admin menu. Inside my Navbar I want to add a icon and when you press the icon the sidenav appear. But the fact is when I copy paste the code from the Materialize doc It works, when ...
NoobieNoob's user avatar
1 vote
1 answer
870 views

Can't import materialize modules with webpack

Trying to use materializecss with webpack. What I want to do is to import only the required Modules not all of the js. Loading the complete js is working as expected. But if I only want to use a modal,...
Friedrich Siever's user avatar
0 votes
2 answers
1k views

Webpack - Materialize with Symfony

I'm running a project on Symfony. I want to use for the first Time, Symfony 4, Webpack and Vagrant/Homestead. My host is a Windows 10 My project is host on a VM made with vagrant/Homestead on Debian ...
NoobieNoob's user avatar
1 vote
0 answers
201 views

Using Materialize-css with angular universal | 'window is undefined' error

I am trying to create an angular universal project with Materialize css. Everything works fine when I try to serve it using 'ng serve'. When I create a build and serve the build, It gives me an error '...
Chinmay H's user avatar
1 vote
1 answer
2k views

Custom module directories in chunk splitting doesn't work in Webpack

I am building a project with webpack and I want to remove duplicated custom materialize.js library with the following config: const path = require('path'); const webpack = require('webpack'); const ...
Dawid's user avatar
  • 143

15 30 50 per page