reese / gatsby-plugin-stork

A Gatsby plugin for generating Stork search indexes.
MIT License
5 stars 1 forks source link

implement `yarn start` #11

Closed ruoduan-hub closed 3 years ago

ruoduan-hub commented 3 years ago

after brew install stork-search/stork-tap/stork 👇🏻

image

image

reese commented 3 years ago

Are you using some sort of Gatsby Starter project? Is this using the default configuration or do you have a config object you can share?

ruoduan-hub commented 3 years ago

Are you using some sort of Gatsby Starter project? Is this using the default configuration or do you have a config object you can share?

I used the configuration in your "REAME"

module.exports = {
    plugins: [
        "gatsby-plugin-stork",
    ]
}
import React from 'react';
import { StorkInput } from 'gatsby-plugin-stork';

export const YourSearchComponent = () => {
  return (
    <StorkInput placeholder="🔍" />
  );
}
reese commented 3 years ago

I put up a patch version for this, so if you bump your plugin version to 0.3.1, this should be resolved. Let me know if you run into any issues, and thanks for the bug report!

ruoduan-hub commented 3 years ago

Thank you very much for the solved problem !