Comments (10)
Checked on this project
from arkit.
@yarkovaleksei please re-try with [email protected], which generated the following graph for me:
from arkit.
It worked only by going to the src
folder and running the script there.
from arkit.
@yarkovaleksei strange, I run from the project root directory.
Could you please provide LEVEL=trace npx arkit
output from it?
from arkit.
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.
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.
@yarkovaleksei or better try [email protected] that should reveal the correct tsconfig path running LEVEL=trace npx arkit
from arkit.
Could you check it running echo $TS_NODE_PROJECT?
Nothing
from arkit.
Yes, with version 1.4.1 everything works correctly
from arkit.
Great, thank for reporting!
from arkit.
Related Issues (20)
- "npx arkit src/ -o arkit.svg " gives npm ERR! errno -4048 HOT 3
- Question - Asking to learn
- Using `class` in a Vue template causes parsing error HOT 5
- Class function part of graph
- Modules with the same name, but in different directories are merged together
- Teleporters HOT 3
- Exclusion does not work HOT 2
- 502 Bad gateway HOT 2
- Can't load customized config file. HOT 4
- root paths
- How to show dependencies of npm packages required in project via dependency graph HOT 2
- Arkit crashes when parsing node_modules wrt .js file extensions
- Arkit does not generate architecture visualization HOT 1
- Switch to mermaid.js or reaflow
- Support for Quasar Framework
- Action Required: Fix Renovate Configuration
- Dependency Dashboard
- CloudFront cannot establish a connection with the origin 504
- TypeError: componentsByName[component.name].push is not a function HOT 1
- Problem with module.exports whitout class name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arkit.