Skip to content

jheng-jie/next-rspack-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Multiple Platforms

  • issue 77800 alias minimum reproduction

  • need: node 20.15+

  • use: yarn 1.22 workspace

Install

yarn install

Dev

There are three projects, each of which can be viewed using the following commands.

  • Depends on @views-a/home, but it internally depends on @core, which causes an error
yarn fail
  • Changing @views-b/home @core dependency to @app/model/core allows it to work properly.
yarn success
  • A demonstration shows that within the platform, it can use aliases like @core and @views.
yarn success2

Other issues: PWA

  • next.config.mjs
// const withPWA = (config) => withRspack(config)
const withPWA = (config) => withNextPWA(withRspack(config)) // Using this line will result in an error

About

https://github.com/vercel/next.js/discussions/77800 alias bug minimum reproduction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published