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

NodeJS 14 warnings #2534

Closed
real-artswan opened this issue May 4, 2020 · 6 comments
Closed

NodeJS 14 warnings #2534

real-artswan opened this issue May 4, 2020 · 6 comments

Comments

@real-artswan
Copy link

real-artswan commented May 4, 2020

Importing it as
import stylus from 'stylus';
I get warnings on starting the app

(node:3446) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:3446) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:3446) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:3446) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:3446) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:3446) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

Here is the same with --trace-warnings

(node:3520) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/node.js:44:23)
    at new Boolean (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/boolean.js:23:8)
    at Object.<anonymous> (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/index.js:57:16)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:3520) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/node.js:45:23)
    at new Boolean (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/boolean.js:23:8)
    at Object.<anonymous> (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/index.js:57:16)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:3520) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/node.js:46:25)
    at new Boolean (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/boolean.js:23:8)
    at Object.<anonymous> (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/index.js:57:16)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:3520) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/node.js:44:23)
    at new Boolean (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/boolean.js:23:8)
    at Object.<anonymous> (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/index.js:58:17)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:3520) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/node.js:45:23)
    at new Boolean (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/boolean.js:23:8)
    at Object.<anonymous> (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/index.js:58:17)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:3520) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/node.js:46:25)
    at new Boolean (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/boolean.js:23:8)
    at Object.<anonymous> (/home/artem/DEVELOPMENT/pss2/pss2-backend/node_modules/stylus/lib/nodes/index.js:58:17)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
@doberkofler
Copy link

doberkofler commented May 25, 2020

It would be nice, if this small but annoying issue could be resolved

@Dikman
Copy link

Dikman commented Jun 1, 2020

Yes. I agree. I also have such the error in an Angular project. When I try to make a library like in "Creating libraries". I.e.

npm install -g @angular/cli
ng new my-workspace --create-application=false
cd my-workspace
ng generate library my-lib
ng build my-lib

It is annoying warnings.

Building Angular Package
(node:16784) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (C:\444\node_modules\stylus\lib\nodes\node.js:44:23)
    at new Boolean (C:\444\node_modules\stylus\lib\nodes\boolean.js:23:8)
    at Object.<anonymous> (C:\444\node_modules\stylus\lib\nodes\index.js:57:16)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:16784) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (C:\444\node_modules\stylus\lib\nodes\node.js:45:23)
    at new Boolean (C:\444\node_modules\stylus\lib\nodes\boolean.js:23:8)
    at Object.<anonymous> (C:\444\node_modules\stylus\lib\nodes\index.js:57:16)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:16784) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (C:\444\node_modules\stylus\lib\nodes\node.js:46:25)
    at new Boolean (C:\444\node_modules\stylus\lib\nodes\boolean.js:23:8)
    at Object.<anonymous> (C:\444\node_modules\stylus\lib\nodes\index.js:57:16)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:16784) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (C:\444\node_modules\stylus\lib\nodes\node.js:44:23)
    at new Boolean (C:\444\node_modules\stylus\lib\nodes\boolean.js:23:8)
    at Object.<anonymous> (C:\444\node_modules\stylus\lib\nodes\index.js:58:17)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:16784) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (C:\444\node_modules\stylus\lib\nodes\node.js:45:23)
    at new Boolean (C:\444\node_modules\stylus\lib\nodes\boolean.js:23:8)
    at Object.<anonymous> (C:\444\node_modules\stylus\lib\nodes\index.js:58:17)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)
(node:16784) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
    at emitCircularRequireWarning (internal/modules/cjs/loader.js:817:11)
    at Object.get (internal/modules/cjs/loader.js:831:5)
    at Boolean.Node [as constructor] (C:\444\node_modules\stylus\lib\nodes\node.js:46:25)
    at new Boolean (C:\444\node_modules\stylus\lib\nodes\boolean.js:23:8)
    at Object.<anonymous> (C:\444\node_modules\stylus\lib\nodes\index.js:58:17)
    at Module._compile (internal/modules/cjs/loader.js:1176:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1196:10)
    at Module.load (internal/modules/cjs/loader.js:1040:32)
    at Function.Module._load (internal/modules/cjs/loader.js:929:14)
    at Module.require (internal/modules/cjs/loader.js:1080:19)

@slightlyfaulty
Copy link

slightlyfaulty commented Jun 15, 2020

If you're using stylus-loader in Webpack, you can use my stylus-native-loader instead to suppress these warnings for the time being.

See: https://github.com/slightlyfaulty/stylus-native-loader#stylus-warnings-since-node-v14

@st-a
Copy link

st-a commented Jul 16, 2020

The issue was fixed by #2538. Current stylus 0.54.8 does not display these warnings anymore.

@ZerdoX-x
Copy link

ZerdoX-x commented Jul 28, 2021

@real-artswan so this is issue may be closed now I guess?

@real-artswan
Copy link
Author

real-artswan commented Jul 28, 2021

@real-artswan so this is issue may be closed now I guess?

I can confirm that 0.54.8 does not display these warnings anymore

trollepierre added a commit to cozy/cozy-ui that referenced this issue Jan 3, 2022
According to this issue,
stylus/stylus#2534 (comment)
This update prevents warnings when build:doc and test Yarn script

```
(node:74912) Warning: Accessing non-existent property 'lineno'
of module exports inside circular dependency
```
trollepierre added a commit to cozy/cozy-ui that referenced this issue Jan 3, 2022
According to this issue,
stylus/stylus#2534 (comment)
This update prevents warnings when build:doc and test Yarn script

```
(node:74912) Warning: Accessing non-existent property 'lineno'
of module exports inside circular dependency
```
trollepierre added a commit to cozy/cozy-ui that referenced this issue Jan 3, 2022
According to this issue,
stylus/stylus#2534 (comment)
This update prevents warnings when build:doc and test Yarn script

```
(node:74912) Warning: Accessing non-existent property 'lineno'
of module exports inside circular dependency
```
trollepierre added a commit to cozy/cozy-ui that referenced this issue Jan 6, 2022
According to this issue,
stylus/stylus#2534 (comment)
This update prevents warnings when build:doc and test Yarn script

```
(node:74912) Warning: Accessing non-existent property 'lineno'
of module exports inside circular dependency
```
trollepierre added a commit to cozy/cozy-ui that referenced this issue Jan 10, 2022
According to this issue,
stylus/stylus#2534 (comment)
This update prevents warnings when build:doc and test Yarn script

```
(node:74912) Warning: Accessing non-existent property 'lineno'
of module exports inside circular dependency
```
trollepierre added a commit to cozy/cozy-ui that referenced this issue Jan 11, 2022
According to this issue,
stylus/stylus#2534 (comment)
This update prevents warnings when build:doc and test Yarn script

```
(node:74912) Warning: Accessing non-existent property 'lineno'
of module exports inside circular dependency
```
cozy-bot pushed a commit to cozy/cozy-ui that referenced this issue Jan 11, 2022
# [59.2.0](v59.1.0...v59.2.0) (2022-01-11)

### Bug Fixes

* **mixins:** Name correctly mixins in styleguide tools ([ce0c7a8](ce0c7a8))
* **sorter:** Categories sorted alphabetically + cozy value goes second ([f493f89](f493f89))
* **stylus:** Remove warning accessing non existing property error ([b756060](b756060)), closes [/github.com/stylus/stylus/issues/2534#issuecomment-659414984](https://github.com//github.com/stylus/stylus/issues/2534/issues/issuecomment-659414984)
* **test:** Resolve each failing tests ([cb09aa8](cb09aa8))
* **test:** Use async/await in testFromStyleguidist ([fd6ca37](fd6ca37))

### Features

* **node16:** Upgrade to node 16 ([5e647b2](5e647b2))
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

6 participants