Comments (11)
Let's re-open this.
from tslog.
Can you try v4.8.7
please? thx
from tslog.
Resolved in 4.8.7.
from tslog.
Thank you. There is already a MR for that, I'll release an update in a few min.
Sorry about that.
from tslog.
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.
Can you try V4.8.6
please? thx
from tslog.
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.
We also get this issue with 4.8.6, the problem persists...
from tslog.
I agree. What are the exact steps to reproduce it?
from tslog.
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.
Thank you. I found the problem in the package.json I fixed it. Releasing shortly
from tslog.
Related Issues (20)
- Bug: [BUG]mongodb 4.0.3 shard duplicate key error log failed HOT 3
- Bug: Build output not respecting file extensions in import statements HOT 2
- Feature Request: please bring back log level name constructor where minLevel takes a string
- Documentation: README.md suggest a broken way to extend `BaseLogger` HOT 7
- Feature Request: [Type the json param of the transportJSON function]
- Customizing field names for arguments using `type:json` HOT 1
- Bug: [BUG] Getting Control Characters in browser (FF and Chrome) HOT 3
- Feature Request: Print objects to console without expanding them. HOT 2
- Feature Request: [Feature] HOT 4
- Bug: [BUG] Inspect Polyfill Does Not Gracefully Handle Invalid Dates HOT 3
- Question - CommonJS with TypeScript 5.x and tslog HOT 3
- Bug: interface is missing optional hostname HOT 2
- Bug: TypeError when logging GraphQLError
- Bug: Logging custom objects causes BSONError - console.log works fine HOT 4
- Tauri Webview do not show a correct format HOT 2
- Bug: Custom logger report calls from customer logger file HOT 1
- Bug: Error logging with [email protected] has issues HOT 1
- Feature Request: [Feature] How to inject extra info to the logs HOT 1
- Bug: Only a few levels are printed in pretty mode HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tslog.