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

The @rollup/plugin-inject plugin causes null print path for the console #13657

Closed
7 tasks done
zhl1232 opened this issue Jun 28, 2023 · 8 comments · Fixed by #14588
Closed
7 tasks done

The @rollup/plugin-inject plugin causes null print path for the console #13657

zhl1232 opened this issue Jun 28, 2023 · 8 comments · Fixed by #14588
Labels
feat: sourcemap Sourcemap support p3-minor-bug An edge case that only affects very specific usage (priority) rollup plugin compat

Comments

@zhl1232
Copy link

zhl1232 commented Jun 28, 2023

Describe the bug

Everything works fine when the @rollup/plugin-inject plugin is removed or there is no inject in the file

Reproduction

https://stackblitz.com/edit/vitejs-vite-1ma8kl?file=vite.config.js,package.json,main.js&terminal=dev

Steps to reproduce

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 16.20.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
    pnpm: 8.6.3 - /usr/local/bin/pnpm
  npmPackages:
    vite: ^4.3.9 => 4.3.9

Used Package Manager

npm

Logs

No response

Validations

@stackblitz
Copy link

stackblitz bot commented Jun 28, 2023

Fix this issue in StackBlitz Codeflow Start a new pull request in StackBlitz Codeflow.

@sapphi-red
Copy link
Member

No errors happens for me.
What do you mean by "null print path for the console"?

@sapphi-red sapphi-red added the cannot reproduce The bug cannot be reproduced label Jun 29, 2023
@zhl1232
Copy link
Author

zhl1232 commented Jun 29, 2023

No errors happens for me. What do you mean by "null print path for the console"?

The console in the browser,press F12

@zhl1232
Copy link
Author

zhl1232 commented Jun 29, 2023

No errors happens for me. What do you mean(意味着) by "null print path for the console"?

The console in the browser,press F12

image

@sapphi-red sapphi-red added rollup plugin compat p3-minor-bug An edge case that only affects very specific usage (priority) feat: sourcemap Sourcemap support and removed cannot reproduce The bug cannot be reproduced labels Jun 29, 2023
@rabih9780
Copy link

Any update of this request? I am having same issue.

@huangxiaoduo
Copy link

Any update of this request? I am having same issue.

uncheck 'enable javascript source maps' can remove this problem, but not fixing it. when i check ''enable javascript source maps', i get null file in sources

@Dunqing
Copy link
Contributor

Dunqing commented Oct 11, 2023

There is a sourceMap option in @rollup/plugin-inject, setting false to it will work fine

@Dunqing
Copy link
Contributor

Dunqing commented Oct 12, 2023

Will be fixed in rollup/plugins#1608

@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feat: sourcemap Sourcemap support p3-minor-bug An edge case that only affects very specific usage (priority) rollup plugin compat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants