Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

tsc module error #14

Closed
jpoehnelt opened this issue Nov 1, 2019 · 5 comments
Closed

tsc module error #14

jpoehnelt opened this issue Nov 1, 2019 · 5 comments

Comments

@jpoehnelt
Copy link
Member

jpoehnelt commented Nov 1, 2019

When running build:theme

Running "ts:themeDefault" (ts) task
Compiling...
Fast compile will not work when --out is specified. Ignoring fast compilation
Using tsc v3.5.3
../@types/babel__core/index.d.ts(13,20): error TS2307: Cannot find module '@babel/types'.
../@types/babel__core/index.d.ts(14,31): error TS2307: Cannot find module '@babel/parser'.
../@types/babel__generator/index.d.ts(10,20): error TS2307: Cannot find module '@babel/types'.
../@types/babel__template/index.d.ts(9,31): error TS2307: Cannot find module '@babel/parser'.
../@types/babel__template/index.d.ts(10,54): error TS2307: Cannot find module '@babel/types'.
../@types/babel__traverse/index.d.ts(10,20): error TS2307: Cannot find module '@babel/types'.
../@types/babel__traverse/index.d.ts(30,5): error TS2411: Property 'scope' of type 'Scope' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeObject<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>)'.
../@types/babel__traverse/index.d.ts(31,5): error TS2411: Property 'noScope' of type 'boolean' is not assignable to string index type '(VisitNodeFunction<S, any> & VisitNodeObject<S, any>) | (VisitNodeFunction<S, any> & VisitNodeFunction<S, any>) | (VisitNodeObject<S, any> & VisitNodeObject<S, any>) | (VisitNodeObject<...> & VisitNodeFunction<...>)'.
@Fleker
Copy link
Contributor

Fleker commented Nov 1, 2019

That's unusual, as it doesn't do that on my copy of the repo. I can't even find any Babel types mentioned in the lock file.

@jpoehnelt
Copy link
Member Author

Yeah, could be something wrong on my end. It would be nice to have a CI build functioning.

@Floppy012
Copy link

Had the same error in my CI today too. Turned out, that my tsconfig was missing for that specific CI job and it didn't know how to resolve modules. After adding the tsconfig the build succeeded.

@Fleker
Copy link
Contributor

Fleker commented Nov 6, 2019

I'll be taking a look at a more robust CI/CD system in the coming days.

@Fleker
Copy link
Contributor

Fleker commented Jan 8, 2020

CI was created and is passing.

@Fleker Fleker closed this as completed Jan 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants