reactour: Webpack fails for JS projects from trying to load index.tsx

Describe the bug Not all projects use TypeScript, and not all projects have .ts/.tsx loaders. This error occurs when using Next.js without TypeScript.

Expected behavior This package should not expect that TypeScript will be available out of the box.

error - ./node_modules/@reactour/tour/index.tsx
Module parse failed: Unexpected token (8:7)
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 Tour
| export { Tour, TourContext, TourProvider, useTour }
> export type {
|   StepType,
|   Position,

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 32 (17 by maintainers)

Most upvoted comments

@semihraifgurel @yanickrochon Could you please try using @reactour/tour@3.0.5 with a cleaning before rm -rf node_modules yarn.lock? Thanks you in advance!

@elrumordelaluz everything is fine with 3.0.5! Good job!