Js-Brecht / gatsby-plugin-pnpm

Provides PNPM compatible module resolvers to Webpack for Gatsby
MIT License
48 stars 6 forks source link

Hot reload of some pages failed #13

Open zhaohuanyuu opened 2 years ago

zhaohuanyuu commented 2 years ago

Description: After using this plugin, pnpm starts normally, but some page routing hot reload fails.then i switch to yarn hot reload was normal

Question: Does it need to be compatible with webpack-hot-middleware or react-refresh-webpack-plugin?

Enviroment:

System: OS: macOS 12.4 CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.15.0 - /var/folders/mk/1t1ldctx4996h4xp021w12nr0000gn/T/yarn--1653824683570-0.4163861220130718/node Yarn: 1.22.19 - /var/folders/mk/1t1ldctx4996h4xp021w12nr0000gn/T/yarn--1653824683570-0.4163861220130718/yarn npm: 8.5.5 - ~/.nvm/versions/node/v16.15.0/bin/npm pnpm: 7.1.5 ~ Browsers: Chrome: 101.0.4951.64 Safari: 15.5 npmPackages: gatsby: ^4.15.1 => 4.15.1 gatsby-plugin-feed: ^4.14.0 => 4.15.0 gatsby-plugin-gatsby-cloud: ^4.15.0 => 4.15.0 gatsby-plugin-image: ^2.15.0 => 2.15.0 gatsby-plugin-manifest: ^4.0.0 => 4.15.0 gatsby-plugin-mdx: ^3.11.1 => 3.15.0 gatsby-plugin-pnpm: ^1.2.10 => 1.2.10 gatsby-plugin-postcss: ^5.12.1 => 5.15.0 gatsby-plugin-react-helmet: ^5.11.0 => 5.15.0 gatsby-plugin-sharp: 4.15.0 => 4.15.0 gatsby-plugin-sitemap: ^5.11.1 => 5.15.0 gatsby-remark-images: ^6.12.1 => 6.15.0 gatsby-remark-prismjs: ^6.11.0 => 6.15.0 gatsby-remark-reading-time: ^1.1.0 => 1.1.0 gatsby-source-filesystem: ^4.11.0 => 4.15.0 gatsby-transformer-sharp: ^4.11.0 => 4.15.0