Giter Club home page Giter Club logo

Comments (10)

yarkovaleksei avatar yarkovaleksei commented on May 19, 2024

Checked on this project

from arkit.

dyatko avatar dyatko commented on May 19, 2024

@yarkovaleksei please re-try with [email protected], which generated the following graph for me:

from arkit.

yarkovaleksei avatar yarkovaleksei commented on May 19, 2024

It worked only by going to the src folder and running the script there.

from arkit.

dyatko avatar dyatko commented on May 19, 2024

@yarkovaleksei strange, I run from the project root directory.
Could you please provide LEVEL=trace npx arkit output from it?

from arkit.

yarkovaleksei avatar yarkovaleksei commented on May 19, 2024
user@ubuntu:[~/git/toster-extension](master)$ arkit -v
1.4.0
user@ubuntu:[~/git/toster-extension](master)$ LEVEL=trace arkit src/ -o arkit.svg
[2019-03-15 13:03:40.152 +0000] INFO : Options
[2019-03-15 13:03:40.154 +0000] INFO : 
    _: "src/"
    o: [
      "arkit.svg"
    ]
    output: [
      "../arkit.svg"
    ]
    directory: "/home/user/git/toster-extension/src"
    d: "src/"
    exclude: [
      "../test",
      "../tests",
      "../dist",
      "../coverage",
      "../**/*.test.*",
      "../**/*.spec.*",
      "../**/*.min.*"
    ]
    e: [
      "test",
      "tests",
      "dist",
      "coverage",
      "**/*.test.*",
      "**/*.spec.*",
      "**/*.min.*"
    ]
    $0: "arkit"
[2019-03-15 13:03:40.154 +0000] TRACE: Error: Cannot find module '/home/user/git/toster-extension/src/arkit'
[2019-03-15 13:03:40.154 +0000] TRACE: Error: Cannot find module '/home/user/git/toster-extension/src/package'
Running against /home/user/git/toster-extension/src with the following config:
{
  "components": [
    {
      "type": "Dependency",
      "patterns": [
        "node_modules/*"
      ]
    },
    {
      "type": "Component",
      "patterns": [
        "**/*.ts",
        "**/*.js",
        "**/*.jsx",
        "**/*.tsx"
      ]
    },
    {
      "type": "Vue",
      "format": "full",
      "patterns": [
        "**/*.vue"
      ]
    }
  ],
  "excludePatterns": [
    "../test",
    "../tests",
    "../dist",
    "../coverage",
    "../**/*.test.*",
    "../**/*.spec.*",
    "../**/*.min.*"
  ],
  "output": [
    {
      "path": [
        "../arkit.svg"
      ],
      "groups": [
        {
          "first": true,
          "components": [
            "Component",
            "Vue"
          ]
        },
        {
          "type": "Dependencies",
          "components": [
            "Dependency"
          ]
        }
      ]
    }
  ]
}
[2019-03-15 13:03:40.158 +0000] DEBUG: Found TypeScript config ../tsconfig.json
[2019-03-15 13:03:40.158 +0000] DEBUG: Registering ts-config paths...
[2019-03-15 13:03:40.158 +0000] DEBUG: 
    @/*: [
      "src/*"
    ]
    assets/*: [
      "assets/*"
    ]
/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/fileSystem/DefaultFileSystemHost.js:59
            throw this.getFileNotFoundErrorIfNecessary(err, filePath);
            ^

Error: File not found: /home/user/git/tsconfig.json
    at FileNotFoundError.BaseError [as constructor] (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/errors/classes/BaseError.js:8:28)
    at FileNotFoundError.PathNotFoundError [as constructor] (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/errors/classes/PathNotFoundError.js:11:28)
    at new FileNotFoundError (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/errors/classes/FileNotFoundError.js:9:23)
    at DefaultFileSystemHost.getFileNotFoundErrorIfNecessary (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/fileSystem/DefaultFileSystemHost.js:184:58)
    at DefaultFileSystemHost.readFileSync (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/fileSystem/DefaultFileSystemHost.js:59:24)
    at FileSystemWrapper.readFileSync (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/fileSystem/FileSystemWrapper.js:733:32)
    at TsConfigResolver.getTsConfigFileJson (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/utils/tsconfig/TsConfigResolver.js:105:36)
    at TsConfigResolver.decorator [as getTsConfigFileJson] (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/utils/decorators/Memoize.js:27:46)
    at TsConfigResolver.parseJsonConfigFileContent (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/utils/tsconfig/TsConfigResolver.js:100:70)
    at TsConfigResolver.decorator [as parseJsonConfigFileContent] (/home/user/.nvm/versions/node/v10.0.0/lib/node_modules/arkit/node_modules/ts-morph/dist/utils/decorators/Memoize.js:27:46)

from arkit.

dyatko avatar dyatko commented on May 19, 2024

You might have TS_NODE_PROJECT env variable defined, from what I see at this line https://github.com/dividab/tsconfig-paths/blob/6da68cbec7f11aa84ec7aeb14732d9edcdb82b68/src/tsconfig-loader.ts#L37

Could you check it running echo $TS_NODE_PROJECT?

from arkit.

dyatko avatar dyatko commented on May 19, 2024

@yarkovaleksei or better try [email protected] that should reveal the correct tsconfig path running LEVEL=trace npx arkit

from arkit.

yarkovaleksei avatar yarkovaleksei commented on May 19, 2024

Could you check it running echo $TS_NODE_PROJECT?

Nothing

from arkit.

yarkovaleksei avatar yarkovaleksei commented on May 19, 2024

Yes, with version 1.4.1 everything works correctly

from arkit.

dyatko avatar dyatko commented on May 19, 2024

Great, thank for reporting!

from arkit.

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.