Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Demo Error: Module parse failed #35

Closed
benbehringer opened this issue Jul 18, 2021 · 2 comments
Closed

Demo Error: Module parse failed #35

benbehringer opened this issue Jul 18, 2021 · 2 comments

Comments

@benbehringer
Copy link

benbehringer commented Jul 18, 2021

Trying to use the plugin, yet receive this error with the Demo:

Error: Module parse failed: Unexpected token (4:13)
  You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpa
  ck.js.org/concepts#loaders
  | import { cacheLoad } from "../../utils/cache"
  | 
  > let channelID: string = process.env.CHANNEL_ID
  | 
  | export default async function handler(

and in the browser

Error when executing function "/Users/ben/code/gatsby/gatsby-plugin-support-chat/packages/demo/node_modules/gatsby-plugin-support-chat/src/api/gatsby-plugin-support-chat/receive-slack-hook.ts":

Module parse failed: Unexpected token (7:5)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
See https://webpack.js.org/concepts#loaders | | export default async function handler( > req: GatsbyFunctionRequest, | res: GatsbyFunctionResponse | ) {
@Szegerege12
Copy link

Any update on this? Same error.

@grewalsukhi89
Copy link

@benbehringer @Szegerege12 Did you ever have any luck with fixing this error?

@youvalv youvalv closed this as completed Jan 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants