denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
93.41k stars 5.18k forks source link

Support Analog (Angular/Vite/Nitro based) #20608

Open birkskyum opened 9 months ago

birkskyum commented 9 months ago

Analog - GitHub - Website

Platform

Darwin 22.6.0 arm64 arm

Version

deno 1.37.0

Repro

Expected

Analog dev server start

Actual

➜ deno task dev
Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in an upcoming release.
Task dev ng serve
error: Uncaught (in promise) Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /Users/admin/repos/deno-kitchensink/analog-project): [Failed to load PostCSS config] Failed to load PostCSS config (searchPath: /Users/admin/repos/deno-kitchensink/analog-project): [ReferenceError] module is not defined
ReferenceError: module is not defined
    at file:///Users/admin/repos/deno-kitchensink/analog-project/postcss.config.js:1:1

module.exports = {
^
    at file:///Users/admin/repos/deno-kitchensink/analog-project/postcss.config.js:1:1

Related to:

birkskyum commented 1 month ago

With Deno 1.44 and:

Hitting this PostCSS (CommonJS) issue now:

➜ DENO_FUTURE=1 deno task dev
Task dev ng serve
error: Uncaught (in promise) Failed to load PostCSS config: Failed to load PostCSS config (searchPath: /Users/admin/repos/deno-kitchensink/analog-p2): [ReferenceError] module is not defined
ReferenceError: module is not defined
    at file:///Users/admin/repos/deno-kitchensink/analog-p2/postcss.config.cjs:1:1
module.exports = {
^
    at file:///Users/admin/repos/deno-kitchensink/analog-p2/postcss.config.cjs:1:1