pngwn / MDsveX

A markdown preprocessor for Svelte.
https://mdsvex.pngwn.io
MIT License
2.47k stars 103 forks source link

0.12.0 doesn't work #627

Closed lts20050703 closed 3 months ago

lts20050703 commented 3 months ago

0.12.0 straight up doesn't work. Downgrading back to 0.11.0 and it works again.

vite/5.4.1 linux-x64 node-v22.6.0

> vite
error when starting dev server:
Error [ERR_INVALID_PACKAGE_TARGET]: Invalid "exports" main target "dist/main.mjs" defined in the package config /home/lts20050703/git/20050703.xyz/node_modules/mdsvex/package.json imported from /home/lts20050703/git/20050703.xyz/svelte.config.js; targets must start with "./"
    at invalidPackageTarget (node:internal/modules/esm/resolve:334:10)
    at resolvePackageTargetString (node:internal/modules/esm/resolve:387:11)
    at resolvePackageTarget (node:internal/modules/esm/resolve:466:12)
    at resolvePackageTarget (node:internal/modules/esm/resolve:516:31)
    at packageExportsResolve (node:internal/modules/esm/resolve:580:27)
    at packageResolve (node:internal/modules/esm/resolve:822:14)
    at moduleResolve (node:internal/modules/esm/resolve:908:18)
    at defaultResolve (node:internal/modules/esm/resolve:1039:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:554:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:523:25)
  System:
    OS: Linux 6.8 KDE neon 6.0 6.0
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 9.48 GB / 15.41 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 22.6.0 - /run/user/1000/fnm_multishells/12208_1723729221676/bin/node
    npm: 10.8.2 - /run/user/1000/fnm_multishells/12208_1723729221676/bin/npm
    bun: 1.1.16 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 127.1.68.141
  npmPackages:
    @sveltejs/adapter-static: ^3.0.4 => 3.0.4 
    @sveltejs/kit: ^2.5.22 => 2.5.22 
    @sveltejs/vite-plugin-svelte: ^3.1.1 => 3.1.1 
    svelte: ^5.0.0-next.222 => 5.0.0-next.222 
    vite: ^5.4.1 => 5.4.1
pngwn commented 3 months ago

i broke it, fixing.

pngwn commented 3 months ago

@lts20050703 released a new version: mdsvex@0.12.1

lts20050703 commented 3 months ago

Thank you for the quick hotfix! <3

pngwn commented 3 months ago

0.12.2 is the new correct version. Found another bug :(