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

Path must be a string. Received undefined #35

Closed
thany opened this issue Jun 1, 2016 · 4 comments
Closed

Path must be a string. Received undefined #35

thany opened this issue Jun 1, 2016 · 4 comments

Comments

@thany
Copy link

thany commented Jun 1, 2016

Downloaded the zip, ran npm install, ran npm run dev. That's all I did.

Then, this error:

ERROR in ./~/css-loader?sourceMap!./~/vue-loader/lib/style-rewriter.js!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=style&index=0!./src/components/NewsView.vue
Module build failed: TypeError: d:\Klanten\vue-loader-example\src\components\NewsView.vue:102:1
    98|     a
    99|       margin-right 10px
   100|       &:hover
   101|         text-decoration underline
   102|
--------^

Path must be a string. Received undefined

    at assertPath (path.js:7:11)
    at extname (path.js:887:5)
    at new SourceMapper (D:\Klanten\vue-loader-example\node_modules\stylus\lib\visitor\sourcemapper.js:41:7)
    at Renderer.render (D:\Klanten\vue-loader-example\node_modules\stylus\lib\renderer.js:94:9)
    at D:\Klanten\vue-loader-example\node_modules\stylus-loader\index.js:149:12
    at tryCatchReject (D:\Klanten\vue-loader-example\node_modules\when\lib\makePromise.js:840:30)
    at runContinuation1 (D:\Klanten\vue-loader-example\node_modules\when\lib\makePromise.js:799:4)
    at Fulfilled.when (D:\Klanten\vue-loader-example\node_modules\when\lib\makePromise.js:590:4)
    at Pending.run (D:\Klanten\vue-loader-example\node_modules\when\lib\makePromise.js:481:13)
    at Scheduler._drain (D:\Klanten\vue-loader-example\node_modules\when\lib\Scheduler.js:62:19)
 @ ./~/vue-style-loader!./~/css-loader?sourceMap!./~/vue-loader/lib/style-rewriter.js!./~/stylus-loader!./~/vue-loader/lib/selector.js?type=style&index=0!./src/components/NewsView.vue 4:14-257 13:2-17:4 14:20-263

This error repeats for every block of stylus code.

If I convert it to css, it's fine. So it looks as if it's missing a module or something.

@yyx990803
Copy link
Member

This is a stylus-loader bug in Node 6. Use Node 5 until it's fixed.

@noahmatisoff
Copy link

Still unresolved?

@chogarcia
Copy link

This is still happening for me, and even with Node 5

@jiv-e
Copy link

jiv-e commented Jan 16, 2017

I had a typo in my component file's style tag.

<style scoped land="scss">

Fixed this with:

<style scoped lang="scss">

Hope this helps.

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

5 participants