Skip to content

.less files are not transpiled when project has nsconfig.json #15

@rosen-vladimirov

Description

@rosen-vladimirov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.2.0
  • Cross-platform modules: Not applicable
  • Android Runtime: Not applicable
  • iOS Runtime: Not applicable
  • Plugin(s): nativescript-dev-less 0.0.11

Describe the bug
When the project has nsconfig.json and the appPath property is set to something that is not app, the plugin fails to convert .less files to .css files. Instead, an error is thrown:

The "path" argument must be one of type string, Buffer, or URL. Received type undefined

To Reproduce
Use this repository: https://github.com/rosen-vladimirov/application-with-less-files and follow the steps outlined in its README

Expected behavior
Application should work fine and you should be able to apply changes in app.less file.

Sample project
https://github.com/rosen-vladimirov/application-with-less-files

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions