Build warning

Hi,

We want to trial the GanttChart Vue component in our Vue3 application, however our build is failing with the following warning:

WARNING in ./node_modules/@syncfusion/ej2-vue-base/src/template.js 122:39-49

export 'extend' (imported as 'Vue') was not found in 'vue' (possible exports: BaseTransition, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isShallow, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId)

This is our package.json - we're using up-to-date versions of Vue / SyncFusion / VueClassComponent;

{
    "private": true,
    "scripts": {
        "dev": "npm run development",
        "development": "mix",
        "watch": "mix watch",
        "watch-poll": "mix watch -- --watch-options-poll=1000",
        "hot": "mix watch --hot",
        "prod": "npm run production",
        "production": "mix --production"
    },
    "devDependencies": {
        "@babel/plugin-syntax-dynamic-import": "^7.8.3",
        "@headlessui/vue": "^1.5.0",
        "@heroicons/vue": "^1.0.5",
        "@inertiajs/inertia": "^0.11.0",
        "@inertiajs/inertia-vue3": "^0.6.0",
        "@inertiajs/progress": "^0.2.7",
        "@syncfusion/ej2-vue-gantt": "^20.1.51",
        "@tailwindcss/forms": "^0.4.0",
        "@vueform/slider": "^2.0.9",
        "axios": "^0.26.0",
        "del": "^6.0.0",
        "dropzone": "^6.0.0-beta.2",
        "highcharts": "^9.3.3",
        "highcharts-vue": "^1.4.0",
        "laravel-mix": "^6.0.41",
        "laravel-mix-bundle-analyzer": "^1.0.5",
        "postcss": "^8.4.5",
        "postcss-import": "^14.0.2",
        "tailwindcss": "^3.0.17",
        "vanillajs-datepicker": "^1.2.0",
        "vue": "^3.0.11",
        "vue-class-component": "^8.0.0-rc.1",
        "vue-debounce": "^3.0.2",
        "vue-loader": "^16.8.3",
        "webpack-bundle-analyzer": "^4.5.0"
    }
}


We've searched online and can't find a solution - any help you can give is appreciated.


Attachment: Screenshot_20220427_at_15.42.19.png_de8d7f2.zip

3 Replies

PS Premkumar Sudalaimuthu Syncfusion Team April 28, 2022 01:38 PM UTC

Hi George ,


We were not able to replicate your reported issue while using your package.json file. We have shared a sample and we request you to modify the sample as an issue replicable. It will be helpful for us to provide you with a better solution.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/VUE3(8~1-233618026


Regards,

Premkumar S




PS Pieter Swart June 3, 2022 12:14 PM UTC

I also get this warning when I build



So if you go look at the source file that the warning is pointing to

\node_modules\@syncfusion\ej2-vue-base\src\template.js
On Line 84.


And this Vue object is imported as this


That extend function does not exist on Vue.

Which is confirmed by TypeScript when I try to do the same in my code






PS Premkumar Sudalaimuthu Syncfusion Team June 6, 2022 01:18 PM UTC

Hi George ,


We have prepared a sample with a template for label. However, we were not getting any warnings which you are reported in the incident. We request you to share your code snippets in App. vue which may help us to find the issue and provide you a solution.


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Vuetemplate-1433391256


Regards,

Premkumar S


Loader.
Up arrow icon