We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have read sveltejs/sapper#592 but all of the solutions are not working. Is there any solution to fix this issue?
<script> import { onMount } from 'svelte'; let myVar = []; onMount(async () => { myVar = await {someAPICall}; }) </script>
The text was updated successfully, but these errors were encountered:
Do you have a minimal reproduction? Calling onMount like that should work.
Sorry, something went wrong.
Sorry, I have found the problem in my webpack.config.js. '.mjs' must be included in the extensions field.
resolve: { extensions: ['.mjs', '.js', '.svelte', '.json'] }, module: { { test: /\.mjs$/, include: /node_modules/, type: 'javascript/auto', loader: 'babel-loader } ] }
No branches or pull requests
I have read sveltejs/sapper#592 but all of the solutions are not working. Is there any solution to fix this issue?
The text was updated successfully, but these errors were encountered: