Got error: Plugin/Preset files are not allowed to export objects, only functions

I got this error while setup my react app using the webpack and babel. I try to change the version of babel but still getting the same error. I’m not getting where’s the problem. ERROR in ./src/index.jsx Module build failed (from ./node_modules/babel-loader/lib/index.js): Error: Plugin/Preset files are not allowed to export objects, only functions. In /home/arslan/Downloads/code/node_modules/babel-preset-es2015/lib/index.js…

docker with maven jar

I’m running a maven project in a docker container, I’m getting Could not find or load main class error. FROM maven:3.6.0-jdk-11-slim AS build COPY src src COPY pom.xml . RUN mvn -f pom.xml clean package install FROM openjdk:8-jre COPY –from=build /target /opt/target WORKDIR /target RUN ls CMD [“java”, “-jar”, “Customer.jar”] above assembly was created with…

openstack newbie: why give me this error, even if password is correct?

I have installed openstack following this guide. Now I want to try a simple cli command openstack catalog list I have export all this variables export HOSTNAME=”openstack1″ export OS_AUTH_PLUGIN=”token” export OS_AUTH_URL=”http://openstack1:5000/v3/” export OS_IDENTITY_API_VERSION=”3″ export OS_PASSWORD=”correctadminpass” export OS_PROJECT_DOMAIN_ID=”default” export OS_PROJECT_DOMAIN_NAME=”mydomain.fqdn” export OS_SERVICE_ENDPOINT=”http://openstack1:5000/v3/” export OS_SERVICE_TOKEN=”1234tokencorrecttakefromkeystone.conf” export OS_USERNAME=”admin” But the command return this error openstack catalog list The…

gatsby-source-graphql does not seem to pass cookie header, how to solve?

How to pass Cookie headers from gatsby-source-graphql? I’m using the gatsby-source-graphql (https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-graphql) and recently had to implement AWS Cloudfront Signed Cookies to authorise users to acccess a private staging environment, for this reason the requests to the graphql endpoint, handled by the plugin, need to have the cookie in the request header, which I do…