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

Error when building an object with multiple spread operators #228

Open
danswann opened this issue Jan 3, 2025 · 4 comments
Open

Error when building an object with multiple spread operators #228

danswann opened this issue Jan 3, 2025 · 4 comments

Comments

@danswann
Copy link
Contributor

danswann commented Jan 3, 2025

Reproduction:

export default function () {
	const defaultOptions = {
		mode: 5,
		fast: true,
	};

	const playerOptions = {
		fast: false,
	};

	const finalOptions = { ...defaultOptions, ...playerOptions };
	return finalOptions;
}

yields a cryptic error seemingly related to proxy-polyfill.

Used to work fine around ~0.19.x if I remember correctly.

@danswann
Copy link
Contributor Author

danswann commented Jan 3, 2025

Actually, seems to be an issue resolving the location of the file, maybe because of the use of src in both my HSE and the proxy-polyfill package?

It's trying to look in:

/home/<removed>/hackmud-scripts/src/home/<removed>/hackmud-scripts/node_modules/<pnpm stuff>/proxy-polyfill/src/proxy.js

which doesn't make any sense (my entire home directory structure down to the project is repeated).

@samualtnorman
Copy link
Owner

how strange, it only happens when specifying --root-folder-path and the last working version was v0.20.4 and it broke in v0.21.0

@samualtnorman
Copy link
Owner

I've made a change, please could you check if this issue is fixed in the latest @dev release, thanks

@danswann
Copy link
Contributor Author

danswann commented Jan 3, 2025

Both instances where I was encountering it are fixed on @dev.

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

2 participants