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

TypeError: Expected signal to be an instanceof AbortSignal #155

Closed
sagarp-patel opened this issue Aug 23, 2023 · 2 comments
Closed

TypeError: Expected signal to be an instanceof AbortSignal #155

sagarp-patel opened this issue Aug 23, 2023 · 2 comments

Comments

@sagarp-patel
Copy link

sagarp-patel commented Aug 23, 2023

Hi Everyone,

I am getting this error when using the azure static web app with SvelteKit. This error occurs when I am using airtable.js library or the @azure/storage-blob library. They both show the same error, and I am not sure what might be causing this error. One thing that is common between the two library is that they are imported via the const {Client} = require("library.js") method. It's seems the issue comes up when the fetch request is waiting for an Abort signal or so. I have tried everything and I am not sure how to solve this issue. I would appreciate any help with this. Thank you in advance! Also wanted to thank you for all the work you did with this library! It's pretty amazing!

@geoffrich
Copy link
Owner

I believe the esbuildOptions.keepNames option was added for this exact issue (see #148). Can you try setting that in your adapter config and see if it resolves the issue?

In your svelte.config.js:

import azure from 'svelte-adapter-azure-swa';

export default {
	kit: {
		adapter: azure({
			esbuildOptions: {
				keepNames: true
			}
		})
	}
};

@sagarp-patel
Copy link
Author

Hi! Thanks for the assistance! I was able to fix this by uninstalling and reinstalling the adapter as well, but the code you gave absolutely solved the issue for me! I appreciate the quick response! Thank you!

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