Materialize CSS Framework throws an error

Launching Meteor 1.1.6 with materialization 0.96.1 and no problems until I launched meteorites in one morning and got a white screen. The console (firebug) says:

SyntaxError: unterminated string literal var c = "input[type=text], input[type=passw 

found in the generated file materialize_materialize.js

Returning to the history of versions, I seem to be unable to find anything vivid that I changed, which could be a criminal. Looking at the source code, I found the code for the corresponding code, but the line is actually complete:

 var c = "input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea"; 

Does anyone else see this problem or have any ideas on how to fix it?

Update: Meteor seems to generate the file just fine, but it stops the middle line in the above error. After disconnecting the line, the file continues:

 /* Exports */ if (typeof Package === 'undefined') Package = {}; Package['materialize:materialize'] = { Materialize: Materialize }; })(); 

Oddly enough, this does not happen on my machine (it uses OSX 10.10.3, and I'm on Windows 7).

2nd Update: This problem was also tested on the Ubuntu 14.04 VM, and there were no problems - the application works fine. Thinking that this might have something to do with the Windows version of Meteor, I blew my installation, downloaded the installer, and installed Meteor on my machine again. What do you know, it worked.

I am not going to mark this with a real answer, until I know what the cause of the problem is, besides the fact that something went wrong with Meteor himself - I think.

+6
source share
1 answer

Make sure you add the SASS package. I suggest fourseven:scss

Alternatively, you can use poetic:materialize-scss instead of materialize:materialize .

0
source

Source: https://habr.com/ru/post/986968/


All Articles