Questions tagged [turbopack]

For questions about Turbopack, a Rust-based incremental bundler optimized for JavaScript/TypeScript.

19 questions
0
votes
0 answers

Turbopack: React.Component is undefined at runtime, but exists in VSCode

I've scaffolded a new project with npx create-next-app --example with-turbopack. I cleaned the project to remove the template stuff, however I'm unable to refer to React.Component in my main container. With Visual Studio Code, when I hover over…
Hydroper
  • 344
  • 2
  • 9
0
votes
0 answers

Turbopack giving undefined for `React.Component`

I'm trying to create a component class with a Turbopack TSX project: import React from 'react'; import baseResolution from '@/lib/baseResolution'; export default class GameContainer extends React.Component<{}, {resizeListener: Function |…
Hydroper
  • 344
  • 2
  • 9
0
votes
0 answers

LitJsSdk fails when I run Next.js 13 with turbopack, but no error with webpack

This is the code is in my /app/lib/litProtocolFunctions.ts file which is where I reference LitJsSdk: //@ts-ignore import LitJsSdk from 'lit-js-sdk'; import { baseUrlConf } from '@/lib/config'; export function disconnectLit() { …
ChristianOConnor
  • 820
  • 7
  • 29
0
votes
0 answers

Nextjs + Turbopack triggers full recompilation over css class change

I just switched to Next.js 13 and was playing with the new Turbopack compiler. At first, compilation times went down drastically, so I was quite happy. Then, I changed some css classes, more specifically, Tailwind classes, and then Next.js triggered…
1
2