Skip to content

Commit

Permalink
fix(types): should import type definition from the dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Nov 6, 2019
1 parent e107cf1 commit 0751213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Plugin } from 'webpack'
import { VueTemplateCompiler } from '@vue/component-compiler-utils/lib/types'
import { VueTemplateCompiler } from '@vue/component-compiler-utils/dist/types'
import { CompilerOptions } from 'vue-template-compiler'

declare namespace VueLoader {
Expand Down

1 comment on commit 0751213

@simllll
Copy link

@simllll simllll commented on 0751213 Dec 1, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just ran into this, any plans for an upcoming release where this is included? Right now I'm unable to compile my project due to weird typescript errors:
ERROR ERROR in ../node_modules/@vue/component-compiler-utils/lib/types.ts(1,1):
1:1 Parsing error: The keyword 'import' is reserved

not quite sure why this file is even compiled even though it's inside of node_modules.. seems to be a dependency that gets resolved somehow.

Please sign in to comment.