Problema ao rodar npm run watch
[Finalizado Pelo Aluno]
Boa noite Carlos, tudo bem ???
Ao tentar rodar o comando do título acima caiu nesse cenário:
WARNING in ./resources/js/vuex/store.js 4:0-7
export 'default' (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)
webpack compiled with 1 warning
Olá, Darcio!
Tudo bem, e com você?
Tem o projeto no GitHub?
Preciso ver as suas dependências no package.json, e também quero ver como estão as configurações do projeto.
Boa noite Carlos, tudo bem sim, desculpa aí o incômodo, segue o link do projeto abaixo:
https://github.com/darciofjunior/Notifications
Até a aula anterior antes de eu adaptar o pusher que é a ideia da aula 25, tudo corria bem, depois que começou a dar ruim ...
Outro ponto que se eu retirar a primeira linha abaixo import Vue from 'vue' do arquivo store.js executa npm run dev sem erro, mas não funciona o Vue.js
Importa o vue da mesma que fez no arquivo app.js
require('vue').default;
----
Você tem um print do erro?
Boa tarde Carlos no store.js
Fiz assim:
at Module../resources/js/vuex/store.js (app.js:22727:1)
at __webpack_require__ (app.js:53007:42)
at Module../resources/js/app.js (app.js:22594:69)
at __webpack_require__ (app.js:53007:42)
at app.js:53172:64
at Function.__webpack_require__.O (app.js:53044:23)
at app.js:53174:53
at app.js:53176:12
DevTools failed to load source map: Could not load content for http://localhost:8000/js/pusher.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
Tem um print do erro?
---
Vc só importou, não jogou para Vue
---
Na realidade, vc pode usar o Window.Vue, assim nem precisa fazer o import no seu arquivo do vuex
Precisa estar logado para conseguir responder a este ticket!
Clique Aqui Para Entrar!