Skip to content
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

[Bug] React-Static-plugin-stylus not working #1244

AshotN opened this issue Jun 27, 2019 · 2 comments

[Bug] React-Static-plugin-stylus not working #1244

AshotN opened this issue Jun 27, 2019 · 2 comments


Copy link

@AshotN AshotN commented Jun 27, 2019

The react-static-plugin-stylus page only references react-static-plugin-less.


    OS: Linux 4.19 Ubuntu 19.04 (Disco Dingo)
    CPU: (8) x64 AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx
    Memory: 4.10 GB / 11.50 GB
    Container: Yes
    Shell: 5.0.3 - /bin/bash
    Node: 10.15.2 - /usr/bin/node
    Yarn: 1.16.0 - /usr/bin/yarn
    npm: 5.8.0 - /usr/bin/npm
    Firefox: 67.0.4
    react: ^16.8.2 => 16.8.6 
    react-dom: ^16.8.2 => 16.8.6 
    react-static: ^7.1.0 => 7.1.0 
    react-static-plugin-less: ^7.1.0 => 7.1.0 
    react-static-plugin-reach-router: latest => 7.0.10 
    react-static-plugin-sitemap: latest => 7.0.10 
    react-static-plugin-source-filesystem: latest => 7.1.0 
    react-static-plugin-stylus: ^7.1.0 => 7.1.0 
    react-static-plugin-typescript: latest => 7.0.10 


	color green


import './stylus/index.styl'
@SleeplessByte SleeplessByte added this to Needs triage in Triage Jul 16, 2019
@SleeplessByte SleeplessByte moved this from Needs triage to Low priority in Triage Jul 17, 2019

This comment has been minimized.

Copy link

@rv-psilveira rv-psilveira commented Jan 6, 2020

any solution?

SleeplessByte added a commit that referenced this issue Jan 12, 2020

This comment has been minimized.

Copy link

@is2ei is2ei commented Jan 12, 2020

@AshotN @rv-psilveira

The README is now updated.

But, we can't use this plugin now since it's not published correctly.
You may find this error if you try to use this plugin

$ yarn build
yarn run v1.21.1
warning ../package.json: No license field
$ react-static build
Bundling application for Production...

  Error: Cannot find module 'react-static-plugin-stylus'

This is because the package is missing main file

$ ls -l node_modules/react-static-plugin-stylus/
total 24
-rw-r--r--   1 horie  staff  1077 Jan 12 22:48 LICENSE
-rw-r--r--   1 horie  staff   629 Jan 12 22:48
drwxr-xr-x  10 horie  staff   320 Jan 12 23:33 node_modules
-rw-r--r--   1 horie  staff   840 Jan 12 22:48 package.json
drwxr-xr-x   3 horie  staff    96 Jan 12 23:33 src
$ grep main node_modules/react-static-plugin-stylus/package.json 
  "main": "index.js",

I updated package.json and the change has been merged. So I think it'll be available after the package has been published again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Low priority
4 participants
You can’t perform that action at this time.