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

Destructive error when building with Vite #148

Open
FeiFanLiang opened this issue Dec 1, 2023 · 6 comments
Open

Destructive error when building with Vite #148

FeiFanLiang opened this issue Dec 1, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@FeiFanLiang
Copy link

FeiFanLiang commented Dec 1, 2023

image image

When building, the error this?.debug is not a function will be prompted.
I solved the problem by manually deleting these two lines in the code, but the built product did not run properly.

image

I used Typescript's alias,This resulted in the project not being able to find the page file for the response.
This problem occurs when I turn on stringArray and builds normally when turned off, but I would really like to use this option

I uploaded a minimally reproducible code to the warehouse, and I only need to run pnpm build pnpm preview to reproduce it.
https://github.com/FeiFanLiang/rollup-obfuscator-debugger

@GabrielMahan
Copy link

experiencing this as well.

@GabrielMahan
Copy link

Not totally sure how the debugging stuff is supposed to work, but I made a quick PR to address: #149.

@ghostdevv
Copy link
Owner

@GabrielMahan @FeiFanLiang could you confirm that this is now fixed in v4.1.1?

@ghostdevv ghostdevv added the bug Something isn't working label Dec 6, 2023
@thierrymichel
Copy link

No, I still have a similar issue.
Removing the 2 this.debug lines does not change anything.

I do not have time (right now) to create a minimal reproducible example but what I observed :

  • Happens with stringArray: true
  • Generates errors on build like:
    • src/modules/ui/App.vue (1:964): Error when using sourcemap for reporting an error: Can't resolve original location of error.
    • not always the same files (kind of randomness)!
  • Crash the application with resolution error:
    • TypeError: Failed to resolve module specifier '@/modules/ui/views/Idle.vue' (which is imported in the App.vue…)
    • not always in the same way
    • probably related to the random behavior (see upper)

I will try to make it reproducible somewhere later.

@thierrymichel
Copy link

FYI, similar behaviour with rollup-plugin-obfuscator

@z0ffy
Copy link

z0ffy commented Nov 13, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants