Coder Social home page Coder Social logo

Comments (11)

drewbitt avatar drewbitt commented on August 16, 2024 2

Let's re-open this.

from tslog.

terehov avatar terehov commented on August 16, 2024 1

Can you try v4.8.7 please? thx

from tslog.

drewbitt avatar drewbitt commented on August 16, 2024 1

Resolved in 4.8.7.

from tslog.

terehov avatar terehov commented on August 16, 2024

Thank you. There is already a MR for that, I'll release an update in a few min.
Sorry about that.

#253

from tslog.

drewbitt avatar drewbitt commented on August 16, 2024

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 :)

from tslog.

terehov avatar terehov commented on August 16, 2024

Can you try V4.8.6 please? thx

from tslog.

drewbitt avatar drewbitt commented on August 16, 2024

I am getting the same error in 4.8.6.
RollupError: "hostname" is not exported by "__vite-browser-external", imported by "node_modules/.pnpm/[email protected]/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/[email protected]/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

from tslog.

BCaspari avatar BCaspari commented on August 16, 2024

We also get this issue with 4.8.6, the problem persists...

from tslog.

terehov avatar terehov commented on August 16, 2024

I agree. What are the exact steps to reproduce it?

from tslog.

drewbitt avatar drewbitt commented on August 16, 2024

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

from tslog.

terehov avatar terehov commented on August 16, 2024

Thank you. I found the problem in the package.json I fixed it. Releasing shortly

from tslog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.