question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failed to locate @import file in windows

See original GitHub issue

this is a dump of what my console says when i request /stylesheets/style.css within windows 7 express and jade work fine.

this is basicly the socket.io chat example wich i try running on windows.

d:\node\chat>node app.js
   app listening on http://0.0.0.0:12345
Error: D:\node\chat\public\stylesheets\style.styl:119
   115|     right 5px
   116|
   117| button
   118|   download-button()
 > 119|

failed to locate @import file d:\node\node_modules\stylus\lib/functions.styl

    at Evaluator.visitImport (d:\node\node_modules\stylus\lib\visitor\evaluator.js:567:21)
    at Evaluator.<anonymous> (d:\node\node_modules\stylus\lib\visitor\index.js:29:39)
    at Evaluator.visit (d:\node\node_modules\stylus\lib\visitor\evaluator.js:70:18)
    at Evaluator.<anonymous> (d:\node\node_modules\stylus\lib\visitor\evaluator.js:99:10)
    at Array.forEach (native)
    at Evaluator.setup (d:\node\node_modules\stylus\lib\visitor\evaluator.js:96:16)
    at Evaluator.evaluate (d:\node\node_modules\stylus\lib\visitor\evaluator.js:138:8)
    at Renderer.render (d:\node\node_modules\stylus\lib\renderer.js:50:26)
    at d:\node\node_modules\stylus\lib\middleware.js:148:17
    at [object Object].<anonymous> (fs.js:108:5)

i edited the chat example because require.paths does not work anymore it seems.

i simply commented this line out: _require.paths.unshift(_dirname + ‘/…/…/lib/’); though i think this has nothing to do with stylus.

well the problem above does.

i will debug / try what ever you want. just tell me what you want to know incase you dont have a windows test enviroment for this.

Issue Analytics

  • State:closed
  • Created 12 years ago
  • Comments:28 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
meteorlxycommented, Jan 29, 2019

@matthew-dean

How to deal with those files in node_modules ?

2reactions
MartinKavikcommented, May 23, 2018

Problem with path C:\abrigo\new_projects\FusionD-docs\.vuepress\override.styl on Windows 10.

Workaround: Change new_projects to _new_projects, because \n creates new line in the import path.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not import photos at all, multiple errors that don't give
I go to my Iphone on Devices and copy the photo files or folders then i go to paste them in a separate...
Read more >
5 Ways to Fix the "Registry Editor Cannot Import File" Error
1. Check the Registry File for Formatting Errors · Right-click on the registry file that you want to import. · Select Open With...
Read more >
How to Fix Registry Editor Cannot Import File Error in ...
Are you using a personal computer? Open the registry editor from the Search menu with admin rights. Try importing that reg file again....
Read more >
Marketing Cloud - Error: 'Import Failed' during Import Activity
Find the import file used in the activity on the account's ftp to confirm that it is empty. This can also occur due...
Read more >
Python error "ImportError: No module named" - Stack Overflow
To make import walk through your directories every directory must have a __init__.py file. ... Python should now find and load the modules...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found