riot / parcel-transformer-riot

A parcel plugin for riot.js
MIT License
11 stars 10 forks source link

TypeError: Cannot read properties of undefined (reading 'endsWith') #29

Closed damusix closed 7 months ago

damusix commented 7 months ago

Node version: v20.11.1 Model: Apple MacBook Pro M2 Arch: arm64

> parcel index.html --open

Server running at http://localhost:1337
🚨 Build failed.

@riotjs/parcel-transformer-riot: Cannot read properties of undefined (reading 'endsWith')

  TypeError: Cannot read properties of undefined (reading 'endsWith')
      at loadConfig
  (file:///Users/danilo.alonso/repos/github/riot-tools/meiosis/node_modules/.pnpm/@riotjs+parcel-transformer-riot@9.0.1_@parcel+core@2.12.0_@riotjs+compiler@9.0.7/node_modules/@riotjs/parcel-transformer-riot/index.js:35:42)
      at async loadPluginConfig
  (/Users/danilo.alonso/repos/github/riot-tools/meiosis/node_modules/.pnpm/@parcel+core@2.12.0/node_modules/@parcel/core/lib/requests/ConfigRequest.js:53:21)
      at async Transformation.loadTransformerConfig
  (/Users/danilo.alonso/repos/github/riot-tools/meiosis/node_modules/.pnpm/@parcel+core@2.12.0/node_modules/@parcel/core/lib/Transformation.js:408:5)
      at async Transformation.loadPipeline
  (/Users/danilo.alonso/repos/github/riot-tools/meiosis/node_modules/.pnpm/@parcel+core@2.12.0/node_modules/@parcel/core/lib/Transformation.js:360:20)
      at async Transformation.run
  (/Users/danilo.alonso/repos/github/riot-tools/meiosis/node_modules/.pnpm/@parcel+core@2.12.0/node_modules/@parcel/core/lib/Transformation.js:140:20)
      at async Child.handleRequest
  (/Users/danilo.alonso/repos/github/riot-tools/meiosis/node_modules/.pnpm/@parcel+workers@2.12.0_@parcel+core@2.12.0/node_modules/@parcel/workers/lib/child.js:203:9)

Reproduce:

Screenshot 2024-03-29 at 9 40 35 AM

GianlucaGuarini commented 7 months ago

Thank you for reporting this issue. parcel-transformer-riot@v9.0.2 should work fine ✌️