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

Chrome Console output does not output location correctly #30

Open
nicewaytodoit opened this issue Mar 22, 2021 · 4 comments
Open

Chrome Console output does not output location correctly #30

nicewaytodoit opened this issue Mar 22, 2021 · 4 comments

Comments

@nicewaytodoit
Copy link

While running ololog in React I have noticed that it does not output location file from the point where it is called but shows always as event raised by ololog.js:145.

with location config = false it will show:

3/22/2021, 11:22:14 AM	"My Log>> XXX"       ololog.js:145

with location config = false it will show:

3/22/2021, 11:22:14 AM	"My Log>> XXX"       ololog.js:145
(<computed> → <computed> → <computed> @ pipez.js:47)

while log was raised in the file example.js.

Even in your demo it will output something like:
https://xpl.github.io/ololog/

foo ra (<computed> → <computed> → <computed> → <computed> @ pipez.js:48)  ololog.js:145 
@xpl
Copy link
Owner

xpl commented Mar 23, 2021

Thanks for the report, I'll check that.

xpl added a commit that referenced this issue Mar 23, 2021
xpl added a commit that referenced this issue Mar 23, 2021
xpl added a commit that referenced this issue Mar 23, 2021
@xpl
Copy link
Owner

xpl commented Mar 23, 2021

There was indeed a trouble when linking Ololog as a script tag from another website — stack entries going to that script were not handled correctly. I fixed that.

But that might not fix your issue if you're importing the library using import directive. I'll investigate on that later. What specific framework/bundler do you use?

@nicewaytodoit
Copy link
Author

Latest version ololog, latest Webpack fresh test project. Simple create-react-app will give the setup.

@Haleclipse
Copy link

It seems that it does not work in "HMR";

image

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

No branches or pull requests

3 participants