Closed drewbitt closed 1 year ago
Thank you. There is already a MR for that, I'll release an update in a few min. Sorry about that.
Great! I'd like an issue for the PR in the future so I don't waste time opening an issue, but that's alright :)
Can you try V4.8.6
please? thx
I am getting the same error in 4.8.6.
RollupError: "hostname" is not exported by "__vite-browser-external", imported by "node_modules/.pnpm/tslog@4.8.6/node_modules/tslog/dist/esm/runtime/nodejs/index.js".
Also seeing
[plugin:vite:resolve] Module "os" has been externalized for browser compatibility, imported by "C:/Users/andys-pc/GitHub/MyStuff/Someplice/node_modules/.pnpm/tslog@4.8.6/node_modules/tslog/dist/esm/runtime/nodejs/index.js". See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
There's no reason os
should be externalized when it wasn't in 4.8.2
Let's re-open this.
We also get this issue with 4.8.6, the problem persists...
I agree. What are the exact steps to reproduce it?
Reproduction
pnpm create vite-extra tslog-hostname-bug --template ssr-vanilla-ts
cd tslog-hostname-bug
pnpm install
pnpm install tslog
# Add tslog command from README to counter
echo -e "import { Logger, ILogObj } from \"tslog\";\n\nconst log: Logger<ILogObj> = new Logger();\nlog.silly(\"I am a silly log.\");\n$(cat src/counter.ts)" > src/counter.ts
pnpm run build
Errors
Thank you. I found the problem in the package.json I fixed it. Releasing shortly
Can you try v4.8.7
please? thx
Resolved in 4.8.7.
Describe the bug Upgrading to 4.8.5 breaks my SvelteKit application when building
To Reproduce Upgrade to 4.8.5 Try to build or run dev a vite project
Expected behavior No error
Additional context Downgrading to 4.8.2 removes the error. Did not try 4.8.3-.4
Node.js Version 20.5.0
OS incl. Version Windows 10