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

Export error 4058 #15

Closed
Makanz opened this issue May 12, 2017 · 19 comments
Closed

Export error 4058 #15

Makanz opened this issue May 12, 2017 · 19 comments
Labels
Milestone

Comments

@Makanz
Copy link

Makanz commented May 12, 2017

When I try to export my project I´ve got error nr 4058.
I´m running Windows 10, Node.js v6.9.1

pingy-cli-error

{ Error: ENOENT: no such file or directory, open 'C:\Temp\Pingy-test$stdin' at Error (native)
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Temp\Pingy-test\$stdin' }

@davej
Copy link
Member

davej commented May 12, 2017

Just did a quick test with Windows 7 and Node 6.10.3 and everything seemed ok. What kind of files are you exporting? (i.e.. Sass? Less? Babel?)

@davej davej added the bug label May 12, 2017
@Makanz
Copy link
Author

Makanz commented May 12, 2017

I have now upgraded Node to version 6.10.3 but I still get the same error 4058.
index.html and Less, it works well with "pingy dev" but not on export.

@davej
Copy link
Member

davej commented May 12, 2017

Is it just one Less file or does the Less file import other Less files? If you delete the less file (temporarily) will pingy export work then? I'll try and replicate your setup and get this issue fixed for you.

@davej
Copy link
Member

davej commented May 12, 2017

If it's possible to create a zip up a version of the site (no need to include node_modules) it might be easier to debug what's going on.

@Makanz
Copy link
Author

Makanz commented May 16, 2017

The problem was caused by an import of bootstrap in my .less file.

What is the best way to include, for example, jquery and bootstrap?

@Makanz Makanz closed this as completed May 16, 2017
@davej
Copy link
Member

davej commented May 16, 2017

If you can't include bootstrap the normal way then it's a bug. Also the error description was not helpful.

I'm on holidays for a couple of weeks but I'll fix this when back.

@davej davej reopened this May 16, 2017
@Makanz
Copy link
Author

Makanz commented May 16, 2017

main.less

`@import "bower_components/bootstrap/less/bootstrap.less";

@heading-color: #2284bf;

body {
font-family: Arial, sans-serif;
background-color: #CCC;
}

.container {
height: 100vh;
background-color: #FFF;
box-shadow: 0 0 20px 5px rgba(0,0,0,.2);
}

h1, h2 {
color: @heading-color;
}
`

@davej davej mentioned this issue May 18, 2017
@neberaa
Copy link

neberaa commented Jul 21, 2017

Have the same problem with export... I used scss import.

@Snailsloth
Copy link

same here with export while importing stylus

@ladislavsulc
Copy link

ladislavsulc commented Sep 9, 2017

Same here with scss import (uikit). (Installed as npm package)

When I remove main.scss and these includes, export works normally, so it is definitely the cause.

Node v6.10.3, WIN 10

@davej
Copy link
Member

davej commented Sep 10, 2017

Thanks for the reports.
Is everybody that has experienced this on Windows?

@davej davej added this to the v0.8 milestone Sep 26, 2017
@davej
Copy link
Member

davej commented Sep 27, 2017

I'm closing this for now. If someone can give me a link to a repository where I can reproduce this using Pingy v0.8.1 then I'd be happy to re-open and fix it.

@Snailsloth
Copy link

@davej Hello! Just got this error while exporting project with stylus imports. Pushed it to this repo
√ Compiling index.pug √ Compiling main.js √ Compiling particle-app.js √ Compiling particles.js √ Compiling _base.styl × Failed export to D:/GIT/home/ehloworld/dist { Error: ENOENT: no such file or directory, open 'D:\GIT\home\ehloworld\$stdin' errno: -4058, code: 'ENOENT', syscall: 'open', path: 'D:\\GIT\\home\\ehloworld\\$stdin' }

Win7Pro x64, Node v8.7.0, pingy 0.9.3.
if it's not too late - take a look please, thank you!

@davej davej reopened this Oct 23, 2017
@davej
Copy link
Member

davej commented Oct 23, 2017

@Snailsloth Thanks for the test repo. I will work on this later in the week.

@davej
Copy link
Member

davej commented Oct 25, 2017

@Snailsloth: Ah, it's a source map issue. I'll work on a fix tomorrow. If you want a quick fix in the meantime then you can add "sourceMap": false, to your pingy.json and disable source maps.

@ladislavsulc
Copy link

@davej Thank you for your time and looking into this. Much appreciated!

@Snailsloth
Copy link

@davej
Thank you so much for your work, everything is awesome now.

@davej
Copy link
Member

davej commented Oct 25, 2017

@Snailsloth: thank you for the repo, makes it much easier to figure out what the bug is.

@davej davej closed this as completed in b7ef570 Oct 26, 2017
@davej
Copy link
Member

davej commented Oct 26, 2017

In v0.9.4 this should be fixed even with source maps turned on.

https://github.com/pingyhq/pingy-cli/releases/tag/%40pingy%2Fcli%400.9.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants