Giter Club home page Giter Club logo

Comments (1)

FaniloRandria avatar FaniloRandria commented on June 18, 2024

Since a rollback was done, everything works fine with the v0.6.5...

Nevertheless, I took a look and it seems that the issue was due to a modification on angular-cli (angular-cli/packages/@angular/cli/utilities/require-project-module.ts file):
angular/angular-cli@e54213e#diff-a73addc4ea6dd3d35d407d4e989bec32

A call to resolveProjectModule('/tmp/repro-app', 'tslint') return /tmp/repro-app/tslint.json instead of /tmp/repro-app/node_modules/tslint/lib/index.js

// resolve dependencies within the target project
export function resolveProjectModule(root: string, moduleName: string) {
  return require.resolve(moduleName, { paths: [root] });
}

This function is indirectly called in the devkit/packages/angular_devkit/build_angular/src/tslint/index.ts file line 55:

      const projectTslint = requireProjectModule(
        getSystemPath(projectRoot), 'tslint') as typeof tslint;

A solution would be to remove the paths option to let resolve do a scan with the default resolution paths, or to append /node_modules to the root variable in order to ignore the tslint.json file.

from devkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.