Skip to content

Not working anymore :( #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
whitneyit opened this issue Aug 20, 2015 · 5 comments
Open

Not working anymore :( #4

whitneyit opened this issue Aug 20, 2015 · 5 comments

Comments

@whitneyit
Copy link

Cloning this repo and running jspm install yields the following error.

(program):1 Uncaught SyntaxError: Unexpected token {
localhost/:1 Uncaught (in promise) Uncaught SyntaxError: Unexpected token {
Evaluating http://localhost:3333/src/main.css
Error loading http://localhost:3333/src/main.js

@whitneyit
Copy link
Author

It appears to be trying to parse the file as a js

@geelen
Copy link
Member

geelen commented Aug 20, 2015

Yeah damn. The new JSPM dropped yesterday and I haven't had a chance to fix this yet. Soon though!

You can try to roll back to JSPM v0.15.x to try it out. I know @superhighfives got this running yesterday, I think that was all he did.

@whitneyit
Copy link
Author

Ok thanks mate. I'll give it a shot

On Thu, 20 Aug 2015 19:13 Glen Maddern notifications@github.com wrote:

Yeah damn new JSPM dropped yesterday and I haven't had a chance to fix
this yet. Soon though!

You can try to roll back to JSPM v0.15.x to try it out. I know
@superhighfives https://github.com/superhighfives got this running
yesterday, I think that was all he did.


Reply to this email directly or view it on GitHub
#4 (comment)
.

@superhighfives
Copy link

Hey @whitneyit — I've pulled together a working example that covers CSS Modules, jspm-css-loader with plugins like PostCSS, and vanilla CSS.

You can see it here:
https://github.com/superhighfives/css-modules-react-jspm-example

It also uses the v0.15.x JSPM, which, for me, solved the issue you came across.

@whitneyit
Copy link
Author

Awesome thanks man I'll check it out!

On Thu, 20 Aug 2015 23:28 Charlie Gleason notifications@github.com wrote:

Hey @whitneyit https://github.com/whitneyit — I've pulled together a
working example that covers CSS Modules, jspm-css-loader with plugins like
PostCSS, and vanilla CSS.

You can see it here:
https://github.com/superhighfives/css-modules-react-jspm-example

It also uses the v0.15.x JSPM, which, for me, solved the issue you came
across.


Reply to this email directly or view it on GitHub
#4 (comment)
.

oligot pushed a commit to oligot/jspm-demo that referenced this issue Nov 5, 2015
By updating
* jspm-loader-css-modules to version 1.0.1-beta1
* jspm-loader-css to version 1.0.1-beta1

Note that due to a bug in SystemJS, one has to modify the file
jspm_packages/npm/postcss@5.0.10/lib/parse.js
so that a module isn't required in a string.
In other words, line 14 has to be changed to something like this
(just removing the require statement is enough)

throw new Error('Option safe was removed. ' + 'Use parser: "postcss-safe-parser"');

Fixes css-modules#4 css-modules#6 css-modules#7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants