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

Not Working with React Vite #47

Open
ahsanmughal757 opened this issue Jul 6, 2023 · 0 comments
Open

Not Working with React Vite #47

ahsanmughal757 opened this issue Jul 6, 2023 · 0 comments

Comments

@ahsanmughal757
Copy link

ahsanmughal757 commented Jul 6, 2023

I tried using it with vite react via npm:
Code:

const MailtoUI = require('../node_modules/mailtoui/dist/mailtoui-min')

function App() {
	useEffect(() => {
		MailtoUI.run()
	}, [])

	return (
		// code with MailtoUI a tag
	);
}

Error:

Uncaught TypeError: MailtoUI.run is not a function
    at App.jsx?t=1688628587499:29:14
    at commitHookEffectListMount (react-dom_client.js?v=24e21016:16438:34)
    at commitPassiveMountOnFiber (react-dom_client.js?v=24e21016:17679:19)
    at commitPassiveMountEffects_complete (react-dom_client.js?v=24e21016:17652:17)
    at commitPassiveMountEffects_begin (react-dom_client.js?v=24e21016:17642:15)
    at commitPassiveMountEffects (react-dom_client.js?v=24e21016:17632:11)
    at flushPassiveEffectsImpl (react-dom_client.js?v=24e21016:18985:11)
    at flushPassiveEffects (react-dom_client.js?v=24e21016:18942:22)
    at commitRootImpl (react-dom_client.js?v=24e21016:18911:13)
    at commitRoot (react-dom_client.js?v=24e21016:18772:13)


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