master-co / css

The CSS Language and Framework
https://css.master.co
MIT License
1.82k stars 41 forks source link

🐞 An error "Cannot find module" occurs when importing files in master.config.ts #340

Closed 0Miles closed 7 months ago

0Miles commented 8 months ago

Description

After importing any local files in the master.config.ts configuration file,
you'll encounter an error during the build, receiving a "Cannot find module" error message.

Reproduction

  1. clone this example repo

    git clone https://github.com/0Miles/mastercss-config-cannot-find-module
  2. install node modules

    pnpm i
  3. build

    pnpm build

    then you'll encounter an error: "Cannot find module './styles/example'."

System Informations

No response