We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I'm trying to use this audit in a fairly large vue 2 project. I'm currently getting the following error:
Error: could not resolve position from sourcemap for {file}
It looks to be failing at this point: https://github.com/andoshin11/vue-type-audit/blob/master/src/sourcemap/index.ts#L32
const entry = sourcemapEntry.get(fileName)! /* entry: { map: { version: '3', file: '{project}/ComponentName.vue.ts', sections: [ [Object], [Object] ] } } */ const map = entry.map! const consumer = new SourceMapConsumer(map) const result = consumer.originalPositionFor(location) /* result: { source: null, line: null, column: null, name: null } */
The SourceMapConsumer has a different data structure to what is being provided, as there is no sections property.
SourceMapConsumer
sections
export interface StartOfSourceMap { file?: string; sourceRoot?: string; } export interface RawSourceMap extends StartOfSourceMap { version: string; sources: string[]; names: string[]; sourcesContent?: string[]; mappings: string; }
Hope this helps.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
I'm trying to use this audit in a fairly large vue 2 project. I'm currently getting the following error:
Error: could not resolve position from sourcemap for {file}
It looks to be failing at this point: https://github.com/andoshin11/vue-type-audit/blob/master/src/sourcemap/index.ts#L32
The
SourceMapConsumer
has a different data structure to what is being provided, as there is nosections
property.Hope this helps.
The text was updated successfully, but these errors were encountered: