Comments (5)
Any updates on this?
from arkit.
Any updates on this?
from arkit.
Exact same scenario here: can't get any .vue
file to be parsed if this file's template contains a class
. An App.vue
that is parsed without a problem:
<template>
<div></div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
@Component
export default class App extends Vue {}
</script>
An App.vue
that can't be parsed (notice the only addition is class="whatever"
on the template div):
<template>
<div class="whatever"></div>
</template>
<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
@Component
export default class App extends Vue {}
</script>
Here is the LEVEL=info
error detail:
[2020-04-17 09:43:20.696 +0000] WARN : Unexpected scenario where a(n) OpenBraceToken was not found.
Error: Unexpected scenario where a(n) OpenBraceToken was not found.
at getTokenEnd (/myproject/node_modules/ts-morph/dist/ts-morph.js:1109:23)
at Function.getContainerBodyPos (/myproject/node_modules/ts-morph/dist/ts-morph.js:1101:20)
at isStatementMemberOrPropertyHoldingSyntaxList (/myproject/node_modules/ts-morph/dist/ts-morph.js:1325:38)
at Function.getCompilerChildren (/myproject/node_modules/ts-morph/dist/ts-morph.js:1309:13)
at SyntaxList._getCompilerChildren (/myproject/node_modules/ts-morph/dist/ts-morph.js:3773:31)
at SyntaxList._getCompilerChildrenFast (/myproject/node_modules/ts-morph/dist/ts-morph.js:3779:58)
at SyntaxList._getChildrenInCacheIterator (/myproject/node_modules/ts-morph/dist/ts-morph.js:3111:31)
at _getChildrenInCacheIterator.next (<anonymous>)
at CompilerFactory.initializeNode (/myproject/node_modules/ts-morph/dist/ts-morph.js:18282:28)
at /myproject/node_modules/ts-morph/dist/ts-morph.js:18249:28
[2020-04-17 09:43:20.718 +0000] ERROR: Error parsing /myproject/src/App.vue
@dyatko would you need help on this one, say a reproduction repo, or maybe I might try and figure out a failing test case? Please feel free to share any pointer anyways 🤗
Looking forward to get my WOW diagram ❤️
from arkit.
I could somehow workaround this problem, by some modifications:
badihi@335e27a
I'm not sure that this will be eligible to be merged to master, but at least can be used as a workaround.
from arkit.
On this update any?!
from arkit.
Related Issues (20)
- "npx arkit src/ -o arkit.svg " gives npm ERR! errno -4048 HOT 3
- Question - Asking to learn
- 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.