Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

[Bug] "TypeError: Path must be a string" on nodejs 6 with tsconfig #255

Closed
luchillo17 opened this issue Oct 20, 2016 · 2 comments
Closed

Comments

@luchillo17
Copy link

luchillo17 commented Oct 20, 2016

I'm having this error:

 69% building modules 2033/2034 modules 1 active .../taoappionic2/src/theme/app.core.scssTypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.relative (path.js:1228:5)
    at Object.onRender (/home/carlos/Carlos/OSGroup/taoappionic2/node_modules/sass-loader/index.js:282:42)
    at Object.<anonymous> (/home/carlos/Carlos/OSGroup/taoappionic2/node_modules/sass-loader/node_modules/async/dist/async.js:2414:31)
    at apply (/home/carlos/Carlos/OSGroup/taoappionic2/node_modules/sass-loader/node_modules/async/dist/async.js:40:25)
    at Object.<anonymous> (/home/carlos/Carlos/OSGroup/taoappionic2/node_modules/sass-loader/node_modules/async/dist/async.js:76:12)
    at Object.callback (/home/carlos/Carlos/OSGroup/taoappionic2/node_modules/sass-loader/node_modules/async/dist/async.js:988:16)
    at options.success (/home/carlos/Carlos/OSGroup/taoappionic2/node_modules/node-sass/lib/index.js:309:32)

This issue has similar error but they have no tsconfig, i do have one:

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "allowSyntheticDefaultImports": true,
    "sourceMap": true,
    "noEmitHelpers": true,
    "strictNullChecks": false,
    "baseUrl": "./src",
    "outFile": "./www",
    "paths": {
      "pages": [
        "./src/pages/index.ts"
      ],
      "components": [
        "./src/components/index.ts"
      ],
      "providers": [
        "./src/providers/index.ts"
      ],
      "pipes": [
        "./src/pipes/index.ts"
      ],
      "app.tao-animations": [
        "./src/theme/core/app.tao-animations.ts"
      ]
    },
    "lib": [
      "dom",
      "es6"
    ],
    "types": [
      "node",
      "source-map",
      "uglify-js",
      "webpack"
    ]
  },
  "exclude": [
    "node_modules",
    "www"
  ],
  "awesomeTypescriptLoaderOptions": {
    "forkChecker": true,
    "useWebpackText": true
  },
  "compileOnSave": false,
  "buildOnSave": false,
  "atom": { "rewriteTsconfig": false }
}
@s-panferov
Copy link
Owner

Fixed in 3.x branch

@luchillo17
Copy link
Author

Wow i had already forgotten this issue, it did fix after update.

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

No branches or pull requests

2 participants