Skip to content
\n

Example 2: TS2304: Cannot find name 'GetCurrentVideoPlayer'.
\nThis method comes from my Sprockets asset pipeline in app/assets/javascripts.

\n
// @tsignore - From vanilla JS\nconst player = GetCurrentVideoPlayer();\n
\n

I'm assuming these are TypeScript compilation settings I need to change? I couldn't figure out which settings I need to change and how to make these warnings, not hard errors. The code works, but now TypeScript is detecting it as a hard error.

\n

Is there any way to figure out what the original Webpacker + TypeScript compilation settings were? My tsconfig.json is exactly the same as before with Shakapacker.

","upvoteCount":1,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

Are you using fork-ts-checker-webpack-plugin? We've got this outlined in the setup docs, but this plugin is optional and will prevent compilation on TS errors.

\n

Shooting in the dark but that's the most obvious thing I can think of

","upvoteCount":1,"url":"https://github.com/shakacode/shakapacker/discussions/422#discussioncomment-8576432"}}}

Upgrading from Webpacker to Shakapacker - tons of TypeScript compilation errors #422

Answered by tomdracz
adeeb1 asked this question in Q&A
Discussion options

You must be logged in to vote

Are you using fork-ts-checker-webpack-plugin? We've got this outlined in the setup docs, but this plugin is optional and will prevent compilation on TS errors.

Shooting in the dark but that's the most obvious thing I can think of

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@adeeb1
Comment options

Answer selected by adeeb1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants