Skip to content

This repository contains a minimal setup to reproduce an issue encountered with Webpack's unsafeCache feature not correctly resolving file extensions dynamically in a development environment.

Notifications You must be signed in to change notification settings

jpbriggs408/Webpack-UnsafeCache-ModuleBuildError-Repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack Issue Reproduction

This repository contains a minimal setup to reproduce an issue encountered with Webpack's unsafeCache feature not correctly resolving file extensions dynamically from .jsx to .tsx in a development environment using Webpack Dev Server.

Issue Description

The development server fails to recognize dynamic file renames/extension changes, leading to module resolution errors. Please see here for more context on the issue.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js
  • npm

Initial Setup

npm install installs necessary dependencies npm start runs the development server

The app is served at http://localhost:8080 by default

Reproducing the Issue

  1. The initial setup includes a src/index.jsx file importing src/App.jsx.
  2. When src/App.jsx is changed to src/App.tsx, the dev server fails.

image

About

This repository contains a minimal setup to reproduce an issue encountered with Webpack's unsafeCache feature not correctly resolving file extensions dynamically in a development environment.

Resources

Stars

Watchers

Forks