You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 10, 2022. It is now read-only.
I'm trying to import the UMD version in a Vue project that is based on webpack respectively https://laravel.com/docs/6.x/mix. It ends up in the following error message:
netlify:15357 Uncaught Error: Module parse failed: Unexpected token (11:6)
You may need an appropriate loader to handle this file type.
| if (isBinaryBody(parameters)) {
| return {
| ...opts,
| body: bodyA,
| headers: { 'Content-Type': 'application/octet-stream', ...opts.headers }
I'm trying to use it as follows:
import { NetlifyAPI } from "netlify";
const client = new NetlifyAPI(
"[api_key]"
);
Did anybody have success with the webpack/UMD combination?
The text was updated successfully, but these errors were encountered:
UMD builds are currently experimental and are unfortunately not working quite yet.
In your case, it seems like Webpack might be tripping up on the ... spread operator. Maybe this is because you are targeting browsers that do not support that operator? Or because you are not using Babel?
I'm experiencing this same issue with Vue (technically a Nuxt app). If it helps for troubleshooting purposes - you can reproduce by creating a new Nuxt project, and then add the sample code (anywhere) provided in your README.
After that, when you attempt to start up the application via yarn dev - you'll be greeted with a Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. error.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello there.
I'm trying to import the UMD version in a Vue project that is based on webpack respectively https://laravel.com/docs/6.x/mix. It ends up in the following error message:
I'm trying to use it as follows:
Did anybody have success with the webpack/UMD combination?
The text was updated successfully, but these errors were encountered: