Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "typescript-esbuild" as dep in packages.json because astro-compress requires it #288

Merged
merged 1 commit into from
Nov 23, 2023

Conversation

dedonnodev
Copy link

otherwise this error will appear at first npm i

`7:36:26 PM [vite] Error when evaluating SSR module astrowind/astro.config.mjs: failed to import "astro-compress"
|- Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'typescript-esbuild' imported from astrowind/node_modules/astro-compress/Target/Variable/Option.js
at new NodeError (node:internal/errors:406:5)
at packageResolve (node:internal/modules/esm/resolve:789:9)
at moduleResolve (node:internal/modules/esm/resolve:838:20)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleLoader.import (node:internal/modules/esm/loader:315:34)
at importModuleDynamically (node:internal/modules/esm/translators:109:35)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:141:14)

[astro] Unable to load your Astro config

error Cannot find package 'typescript-esbuild' imported from astrowind/node_modules/astro-compress/Target/Variable/Option.js
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'typescript-esbuild' imported from astrowind/node_modules/astro-compress/Target/Variable/Option.js
at new NodeError (node:internal/errors:406:5)
at packageResolve (node:internal/modules/esm/resolve:789:9)
at moduleResolve (node:internal/modules/esm/resolve:838:20)
at defaultResolve (node:internal/modules/esm/resolve:1043:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
at ModuleLoader.import (node:internal/modules/esm/loader:315:34)
at importModuleDynamically (node:internal/modules/esm/translators:109:35)
at importModuleDynamicallyCallback (node:internal/modules/esm/utils:141:14)`

@prototypa prototypa merged commit d659b23 into onwidget:main Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants