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

scss error? #10

Open
kylegoines opened this issue Jun 19, 2018 · 3 comments
Open

scss error? #10

kylegoines opened this issue Jun 19, 2018 · 3 comments

Comments

@kylegoines
Copy link

Hello I seem to be throwing errors even though compliation seems to be happending correctly

this:

gulp.src('_scss/main.scss', {read:false})
            .pipe( parcel( { outDir: 'dist' } ) )
            .pipe( gulp.dest('dist') )

compiles and works with scss but after hanging for a second i seem to be getting an unhanded promise error

UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): [object Object]
...
/node_modules/gulp-parcel/index.js:112
						throw err;
						^
@kylegoines
Copy link
Author

to clarify, this is comping to css correctly but is halting my watch task.
any help would be great :)

@a65162
Copy link

a65162 commented Jun 22, 2018

same problem here

@davepeck
Copy link

davepeck commented Aug 30, 2018

After looking at the code behind gulp-parcel, this just seems to be completely busted.

Basically, gulp-parcel incorrectly computes out_flname -- it assumes that the output filename has the same extension as the input: for instance, if you start with main.js, you'll end with main.js. You can see the computation of out_flname here.

At the same time, it's clear that the author recognized this issue, but not in the general case: if you look further below in gulp-parcel's index.js you can see where the code explicitly looks for the .pug extension in the input file name, and rewrites the output file name to .html so that no exception gets thrown.

Bottom line: we're not quite ready for prime time. Will have to look elsewhere or submit a PR...

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

3 participants