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

Uncaught TypeError: Cannot read property 'slice' of null #2

Open
ikafie opened this issue Mar 4, 2021 · 0 comments
Open

Uncaught TypeError: Cannot read property 'slice' of null #2

ikafie opened this issue Mar 4, 2021 · 0 comments

Comments

@ikafie
Copy link

ikafie commented Mar 4, 2021

What happened:
I have one problem 'slice' of null in my project. It's an Angular project.

More info:
It was working well before when my project was running under Angular v7. This issue did happen after updating to Angular v10.

Error message:
Uncaught TypeError: Cannot read property 'slice' of null
at parseJSFunc (quirc.js:421)

var sourceRegex = /^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/;
			function parseJSFunc(jsfunc) {
				var parsed = jsfunc.toString().match(sourceRegex).slice(1);
				return {
					arguments: parsed[0],
					body: parsed[1],
					returnValue: parsed[2]
		}
}
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

1 participant