The issue here is that Gatsby doesn’t natively support TypeScript in local plugins. Gatsby expects plugin files like gatsby-node.js to be JavaScript, so it doesn't automatically handle .ts files in the plugins directory. However, you can solve this problem by compiling the TypeScript code to JavaScript before each Gatsby build or develop process manually or programmatically. package.json is where you specify root file for compiled plugin