question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

2.9.2 regression - Cannot read properties of null (reading 'isCE')

See original GitHub issue

Describe the bug

Please use provided repo and run npm run dev then open developer console you will see the error. Downgrade to 2.9.1 problem is gone.

Reproduction

https://github.com/jzs11/vite-regression-playground

System Info

System:
    OS: macOS 12.3.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 4.11 GB / 32.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 17.8.0 - /usr/local/bin/node
    Yarn: 1.22.15 - /usr/local/bin/yarn
    npm: 8.5.5 - /usr/local/bin/npm
  Browsers:
    Chrome: 100.0.4896.88
    Firefox: 99.0
    Safari: 15.4
  npmPackages:
    @vitejs/plugin-vue: 2.3.1 => 2.3.1 
    vite: 2.9.2 => 2.9.2

Used Package Manager

npm

Logs

image

Validations

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jzs11commented, Apr 14, 2022

I can confirm it is now working as expected after upgrading to 2.9.5. Thank you guys for your effort.

3reactions
carl-jincommented, Apr 14, 2022

try this, force him to use esm bunder.

export default defineConfig(({ command }) => {
  return {
    resolve: {
      alias: [
        {
          find: "@vue/runtime-core",
          replacement: "@vue/runtime-core/dist/runtime-core.esm-bundler.js",
        },
      ],
    },
  };
});

The reason for this is because if your project import a package thats is export by cjs, for some reason, the vue-core runtime will also import cjs, that’s why we got an error here, btw this also causes the hmr not works in vue file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

vue.js - TypeError: Cannot read properties of null (reading 'isCE')
The following error is reported back in the console. TypeError: Cannot read properties of null (reading 'isCE'). I have looked into the issue ......
Read more >
cannot read properties of null (reading 'package') - You.com
The error message means that npm is trying to read the version property of the folder's package.json file but doesn't find the file....
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
... Bug:137286 - "app-emulation/dosemu: COPYING gets compressed by ecompress and can't be read" status:RESOLVED resolution:OBSOLETE severity:normal ...
Read more >
IBM Business Process Manager V8.0 Production Topologies
Note: Before using this information and the product it supports, read the information in ... 16.1.5 Configuring IBM HTTP Server plug-in properties ....
Read more >
Inertia.js + Vue 3 + TS = "Cannot read properties of null ...
Inertia.js + Vue 3 + TS = "Cannot read properties of null (reading 'dataset')". Hi guys, I'm trying to setup a new Laravel...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found