Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of null (reading 'isCE') #30

Closed
AubSs opened this issue Dec 16, 2022 · 6 comments
Closed

TypeError: Cannot read properties of null (reading 'isCE') #30

AubSs opened this issue Dec 16, 2022 · 6 comments
Assignees
Labels
advise or question Seeking for advise or question invalid This doesn't seem right

Comments

@AubSs
Copy link

AubSs commented Dec 16, 2022

Hello,

there is a problem related to this package and this vue issue

TypeError: Cannot read properties of null (reading 'isCE')

Any idea why when I import this package it throw this ?

More info, the problem is only with Vite4, it work fine with vite3

Thanks!

<template>
    <el-card v-if="address" shadow="hover" :body-style="{ padding: 0, height: '100%', width: '100%' }">
        <GMapMap :center="position" :zoom="17" class="h-full w-full"
                 :options="{
                     zoomControl: false, mapTypeControl: false, scaleControl: false, streetViewControl: false, rotateControl: false, fullscreenControl: false,
                     styles: [ { featureType: 'poi', stylers: [ { visibility: 'off' } ] } ]
                 }"
        >
            <GMapMarker :position="position" :icon="{ url: '/logo/logo-pin-color.svg', scaledSize: { width: 35, height: 35 } }" />
        </GMapMap>
    </el-card>
</template>

<script setup lang="ts">
import { IAddress } from '@common/models';
import { computed } from 'vue';

const props = defineProps<{ address: IAddress }>();

const position = computed(() => ({
    lat: parseFloat(`${props.address?.position[1] || 0}`),
    lng: parseFloat(`${props.address?.position[0] || 0}`),
}));
</script>
@websitevirtuoso
Copy link
Collaborator

I can confirm the bug. Checking why this happens and working on PR. If you can figure out faster please create PR

@websitevirtuoso websitevirtuoso added the bug Something isn't working label Dec 16, 2022
@websitevirtuoso
Copy link
Collaborator

I have no idea why this happens when using Vite4. I have the same issue. Tmp had to rollback to vite3.
The problem with plugin, the code is not clear for me. Hope somebody can help with this bug.

@NathanAP NathanAP self-assigned this Dec 20, 2022
@NathanAP NathanAP added the help wanted You can contribute with this with in any way possible label Dec 20, 2022
@NathanAP
Copy link
Owner

Hello! Sorry being late on this issue.

Did you guys tried this ?

@NathanAP
Copy link
Owner

I updated the project that I use our package to vite 4.0.2, its working fine, maybe its something more specific? I can create simple maps and markers.

@AubSs
Copy link
Author

AubSs commented Jan 12, 2023

Sorry for the late response.

Yeah it seems that only vite 4.0.1 is causing this.
Upgrading to > 4.0.1 resolve everything.

Closing this issue now :)

@AubSs AubSs closed this as completed Jan 12, 2023
@NathanAP
Copy link
Owner

Great, thats awesome! Thanks for reporting :)

@NathanAP NathanAP added invalid This doesn't seem right advise or question Seeking for advise or question and removed bug Something isn't working help wanted You can contribute with this with in any way possible labels Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
advise or question Seeking for advise or question invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants