histoire icon indicating copy to clipboard operation
histoire copied to clipboard

Update from 0.10 to 0.11 causes error with Quasar = TypeError: Cannot read properties of undefined (reading 'prototype')

Open rasc-br opened this issue 2 years ago • 2 comments

Describe the bug

Version 0.10.x works as expected. Version 0.11.x throws this error during build and serve:

TypeError: Cannot read properties of undefined (reading 'prototype')

Since it happens in all story files, I noticed that is related to the configuration where Quasar is included:

Reproduction

https://stackblitz.com/edit/histoire-vue3-starter-uaknmn?file=histoire.setup.ts

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 4.19 GB / 15.68 GB
  Binaries:
    Node: 16.15.1 - C:\Program Files\nodejs\node.EXE
    npm: 8.11.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (106.0.1370.37)
    Internet Explorer: 11.0.22000.120

Used Package Manager

npm

Validations

rasc-br avatar Oct 10 '22 20:10 rasc-br

Try putting your setup file only in the browser:

setupFile: { browser: '...' }

Akryum avatar Oct 10 '22 20:10 Akryum

I changed the in the sandbox, looks like the error persists: https://stackblitz.com/edit/histoire-vue3-starter-uaknmn?file=histoire.config.ts

rasc-br avatar Oct 11 '22 16:10 rasc-br

@rasc-br Have you by chance solved this? I'm currently having the same exact problem.

vsergiu93 avatar Oct 27 '22 07:10 vsergiu93

@vsergiu93 Unfortunately no, I had to downgrade to 0.10 until Histoire team comes with a solution.

rasc-br avatar Oct 27 '22 11:10 rasc-br

Do you have a working stackblitz for 0.10 with quasar 2? I generally use quasar-cli but even a pure vite project or anything would be huge. Really want to get this working, spent the entire night on it to no avail :D

Paracelsus-Rose avatar Oct 29 '22 12:10 Paracelsus-Rose

This is the same thing as before, but on version 0.10.4: https://stackblitz.com/edit/histoire-vue3-starter-rbqjde?file=package.json

rasc-br avatar Nov 01 '22 13:11 rasc-br

Thank you so much. This will surely get me started.

Paracelsus-Rose avatar Nov 01 '22 23:11 Paracelsus-Rose