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

.svelte formatting in VS Code is broken #20

Open
CodingKoopa opened this issue Jan 17, 2024 · 1 comment
Open

.svelte formatting in VS Code is broken #20

CodingKoopa opened this issue Jan 17, 2024 · 1 comment

Comments

@CodingKoopa
Copy link
Contributor

Error [ERR_REQUIRE_ESM]: require() of ES Module /home/koopa/Fountain/Code/web/hackathon-manager/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs not supported.
Instead change the require of /home/koopa/Fountain/Code/web/hackathon-manager/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/prettier-plugin-tailwindcss/dist/index.mjs to a dynamic import() which is available in all CommonJS modules.
    at f._load (node:electron/js2c/asar_bundle:2:13377)
    at /home/koopa/Fountain/Code/web/hackathon-manager/home/node_modules/.pnpm/[email protected]/node_modules/prettier/index.js:38143:10
    at Array.map (<anonymous>)
    at Object.load (/home/koopa/Fountain/Code/web/hackathon-manager/home/node_modules/.pnpm/[email protected]/node_modules/prettier/index.js:38141:128)
    at Object.load [as loadPlugins] (/home/koopa/Fountain/Code/web/hackathon-manager/home/node_modules/.pnpm/[email protected]/node_modules/prettier/index.js:16147:23)
    at /home/koopa/Fountain/Code/web/hackathon-manager/home/node_modules/.pnpm/[email protected]/node_modules/prettier/index.js:38181:24
    at Object.format (/home/koopa/Fountain/Code/web/hackathon-manager/home/node_modules/.pnpm/[email protected]/node_modules/prettier/index.js:38197:12)
    at SveltePlugin.formatDocument (/home/koopa/.vscode-oss/extensions/svelte.svelte-vscode-108.2.1/node_modules/svelte-language-server/dist/src/plugins/svelte/SveltePlugin.js:114:46)
    at async PluginHost.tryExecutePlugin (/home/koopa/.vscode-oss/extensions/svelte.svelte-vscode-108.2.1/node_modules/svelte-language-server/dist/src/plugins/PluginHost.js:347:20)
    at async Promise.all (index 0)
    at async PluginHost.execute (/home/koopa/.vscode-oss/extensions/svelte.svelte-vscode-108.2.1/node_modules/svelte-language-server/dist/src/plugins/PluginHost.js:324:24)
    at async PluginHost.formatDocument (/home/koopa/.vscode-oss/extensions/svelte.svelte-vscode-108.2.1/node_modules/svelte-language-server/dist/src/plugins/PluginHost.js:114:38) {
  code: 'ERR_REQUIRE_ESM'

might have broke during the move to monorepo? .ts still works

@CodingKoopa
Copy link
Contributor Author

also, Format (Forced) does work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant