Subscribe on changes!

Owner context is lost when building for production

avatar
Mar 8th 2021

Version

3.0.7

Reproduction link

https://github.com/b12f/schlechtenburg/tree/minimal

** Important! It's the minimal branch in that repo**

Steps to reproduce

  1. Clone the reproduction repository and switch to the minimal branch.
  2. Go into the directory, run npm ci
  3. Run npx lerna bootstrap
  4. Run npm run dev, open the page and see a paragraph being rendered
  5. Run npx vite build. This builds the same application for production. Go into /docs, start a local file server, and open the page.

What is expected?

The development and production application produce the same output.

What is actually happening?

We get type errors because inject ed values are undefined, even though they were fine when running in development mode.

avatar
Mar 8th 2021

This is too much for a reproduction. It should have no TS (unless a type error), and no multi packages (lerna). Please boil it down and open a new issue so we can take a look

avatar
Mar 29th 2021

I have the same problem. Have you solved it?