ORIGIN

Hexo Node.js 14 Accessing non-existent property of module exports inside circular dependency解决

Blog 1 mins186 words

问题

1
2
3
4
5
6
7
8
INFO  Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
(node:11276) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11276) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:11276) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:11276) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:11276) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:11276) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency

解决

问题由于stylus导致,所以修改stylus的版本

package.json文件中添加这个

1
2
3
"resolutions": {
"stylus": "^0.54.8"
},

然后执行npm install 或者yarn install

此操作相当于指定了stylus的版本。

TOP
COMMENT
  • ABOUT
  • |
o_oyao
  The Jigsaw puzzle is incomplete with even one missing piece. And I want to be the last piece to make the puzzle complete.
Like my post?
Default QR Code
made with ❤️ by o_oyao
©o_oyao 2019-2024

|