Giter VIP home page Giter VIP logo

gatsby-source-graphql-universal's People

Contributors

birkir avatar gforro avatar laradevitt avatar marcmcintosh avatar veloce avatar wardpeet avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

gatsby-source-graphql-universal's Issues

Unknown option: .reactRuntime

I copied this issue from gatsbyjs/gatsby#26736

Description

Running gatsby develop results in 2 errors stating: "Unknown option: .reactRuntime"

It might be something to do with images, as I noticed the errors crop up just after the console statement: "Generating image thumbnails"...

success createPages - 16.044s
success Checking for changed pages - 0.002s
success createPagesStatefully - 0.102s
success update schema - 0.116s
success write out redirect data - 0.002s
success Build manifest and related icons - 0.117s
success onPostBootstrap - 0.127s
info bootstrap finished - 77.267s
success onPreExtractQueries - 0.003s
success extract queries from components - 0.406s
success write out requires - 0.046s
success run static queries - 0.212s - 1/1 4.72/s
success run page queries - 1.786s - 1679/1679 940.12/s
success Generating image thumbnails - 4.130s - 6/6 1.45/s

 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/polyfill-entry.js


 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/app.js

failed Building development bundle - 0.747s

Steps to reproduce

Install the dependencies as shown and the same errors should occur.

Expected result

Project should build successfully.

Actual result

ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/app.js


 ERROR #98123  WEBPACK

Generating development JavaScript bundle failed

Unknown option: .reactRuntime. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.

File: .cache/polyfill-entry.js

Environment

  System:
    OS: macOS 10.15.5
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.18.3 - /usr/local/bin/node
    Yarn: 1.21.1 - /usr/local/bin/yarn
    npm: 6.14.6 - /usr/local/bin/npm
  Languages:
    Python: 2.7.16 - /usr/bin/python
  Browsers:
    Chrome: 84.0.4147.135
    Firefox: 78.0.2
    Safari: 13.1.1
  npmPackages:
    gatsby: ^2.24.53 => 2.24.53
    gatsby-image: ^2.4.16 => 2.4.16
    gatsby-plugin-manifest: ^2.4.27 => 2.4.27
    gatsby-plugin-offline: ^3.2.26 => 3.2.26
    gatsby-plugin-react-helmet: ^3.3.10 => 3.3.10
    gatsby-plugin-sharp: ^2.6.31 => 2.6.31
    gatsby-plugin-styled-components: ^3.3.10 => 3.3.10
    gatsby-source-fetch: ^1.0.3 => 1.0.3
    gatsby-source-filesystem: ^2.3.27 => 2.3.27
    gatsby-source-graphql-universal: 3.3.0 => 3.3.0
    gatsby-source-prismic-graphql: ^3.6.2 => 3.6.2
    gatsby-transformer-csv: ^2.3.10 => 2.3.10
    gatsby-transformer-sharp: ^2.5.14 => 2.5.14
  npmGlobalPackages:
    gatsby-cli: 2.12.88

Node type duplication between gatsby-source-prismic-graphql and gatsby-source-graphql-universal

Hello,

I'm using @prismicio/gatsby-source-prismic-graphql to interface with our Prismic CMS and I'm attempting to use @prismicio/gatsby-source-graphql-universal to interface with a Magento 2 store.

gatsby-config.js

{
	resolve: "@prismicio/gatsby-source-graphql-universal",
	options: {
		typeName: "MAGENTO",
		fieldName: "magento",
		url: "https://{storeurl}/graphql",
	},
},
{
	resolve: "@prismicio/gatsby-source-prismic-graphql",
	options: {
		repositoryName: "{repo}",
		accessToken:
			"{token}",
		pages: [
			{
				type: "Landing_page",
				match: "/:uid",
				path: "/",
				component: require.resolve(
					"./src/templates/LandingPage.js"
				),
			},
		],
	},
},

Each work properly without the other included. The error response ...

Error: The plugin "@prismicio/gatsby-source-prismic-graphql" created a node of a type owned by another plugin.
          The node type "GraphQLSource" is owned by "@prismicio/gatsby-source-graphql-universal".
          If you copy and pasted code from elsewhere, you'll need to pick a new type name
          for your new node(s).
          The node object passed to "createNode":
          {
      "id": "9f1c17b5-dc2b-5268-ac61-0ab6ef9035c6",
      "typeName": "PRISMIC",
      "fieldName": "prismic",
      "parent": null,
      "children": [],
      "internal": {
          "type": "GraphQLSource",
          "contentDigest": "4b4b7773f1f4e092aec75cdb870af00f",
          "ignoreType": true,
          "counter": 36,
          "owner": "@prismicio/gatsby-source-prismic-graphql"
      }
  }

I've search the documentation but there is no way to change the node type.

Any ideas are welcome! Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.