How to fix error with webpack in Vue : Expected an Identifier but found '(' Instead

Asked

Viewed 5 times

0

I have a project done in Vue, it occurs that it compiles without problems, runs in Chrome, but when I test in Safari, generates an error: Expected an Identifier but found '(' Instead In the Safari console,:

eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! axios */ \"./node_modules/axios/index.js\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(axios__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../libraries/fccStorage */ \"./node_modules/pkgfe.fccbase/libraries/fccStorage/index.js\");\n\r\n\r\n\r\n\r\n\r\nvue__WEBPACK_IMPORTED_MODULE_1__[\"default\"].use(vuex__WEBPACK_IMPORTED_MODULE_2__[\"default\"])\r\n\r\n/* harmony default export */ __webpack_exports__[\"default\"] = (new vuex__WEBPACK_IMPORTED_MODULE_2__[\"default\"].Store({\r\n  state: {\r\n    dadosLogin: JSON.parse(_libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getItem('Login')),\r\n    dadosUser: JSON.parse(_libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getItem('fccUser')),\r\n    dadosMenu: JSON.parse(_libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getItem('fccMenu')),\r\n    baseUrlSeguranca:\r\n      \"http://dotnetapis.netservices.fcc.org.br/desenv/\" + \"webapi.seguranca/v1/\",\r\n    baseUrlNotificacao:\r\n      \"http://dotnetapis.netservices.fcc.org.br/desenv/\" + \"notificacao/v1/\",\r\n    baseUrlInstrucao:\r\n      \"http://dotnetapis.netservices.fcc.org.br/desenv/\" + \"instrucao/v1/\",\r\n    baseUrlPublicacao:\r\n      \"http://dotnetapis.netservices.fcc.org.br/desenv/\" + \"publicacao/v1/\",\r\n    containerSize: \"container-fluid\",\r\n    appIdSystem: \"1\",\r\n    permissaoMenu: {\r\n      adicionar: 'I',\r\n      editar: 'A',\r\n      excluir: 'E',\r\n      visualizar: 'C'\r\n    },\r\n    instrucaoPage: JSON.parse(_libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getItem('instrucaoPage')),\r\n    permissaoPage: JSON.parse(_libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getItem('permissaoPage')),\r\n    metadataPage: JSON.parse(_libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getItem('metadataPage')),\r\n    loadingText: '',\r\n    simpleLayout: false,\r\n    b64FccLogo: _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getItem('fccLogo')\r\n  },\r\n  mutations: {\r\n    SET_AUTH(state, obj) {\r\n      state.dadosLogin = obj\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setItem('Login', JSON.stringify(obj))\r\n    },\r\n    SET_INSTRUCAO(state, obj) {\r\n      state.instrucaoPage = obj\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setItem('instrucaoPage', JSON.stringify(obj))\r\n    },\r\n    SET_PERMISSAO(state, obj) {\r\n      state.permissaoPage = obj\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setItem('permissaoPage', JSON.stringify(obj))\r\n    },\r\n    SET_METADATA(state, obj) {\r\n      state.metadataPage = obj\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setItem('metadataPage', JSON.stringify(obj))\r\n    },\r\n    SET_SIMPLELAYOUT(state, boolean) {\r\n      state.simpleLayout = boolean\r\n    },\r\n    USER_AUTH(state, obj) {\r\n      state.dadosUser = obj\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setItem('fccUser', JSON.stringify(obj))\r\n    },\r\n    USER_MENU(state, obj) {\r\n      state.dadosMenu = obj\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setItem('fccMenu', JSON.stringify(obj))\r\n    },\r\n    CARREGA_TEXTO(state, obj) {\r\n      state.loadingText = obj\r\n    },\r\n    CHANGE_WIDTH_DIV(state, obj) {\r\n      state.containerSize = obj\r\n    },\r\n    SET_LOGO(state, imgStr) {\r\n      state.b64FccLogo = imgStr\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].setItem('fccLogo', imgStr)\r\n    }\r\n  },\r\n  actions: {\r\n    storeLogo(context) {\r\n      return axios__WEBPACK_IMPORTED_MODULE_0___default.a.get(\r\n        Object({\"NODE_ENV\":\"development\",\"VUE_APP_API_BASE\":\"http://dotnetapis.netservices.fcc.org.br/desenv/\",\"VUE_APP_API_CODIGO\":\"1\",\"VUE_APP_API_CONCURSOS\":\"http://dotnetapis.netservices.fcc.org.br/desenv/sgp.concurso/v1/\",\"VUE_APP_API_EMAILS\":\"EnvioEmail/v1/\",\"VUE_APP_API_GESTAO_FORM\":\"cadastro.formulario/v1/\",\"VUE_APP_API_GESTAO_PROJETOS\":\"GestaoProjeto.Concurso/v1/\",\"VUE_APP_API_ID\":\"1\",\"VUE_APP_API_INSTRUCAO\":\"instrucao/v1/\",\"VUE_APP_API_NOTIFICACAO\":\"notificacao/v1/\",\"VUE_APP_API_PRIMEIRO_ACESSO\":\"http://sgpdesenv.fcc.org.br/gestao_projetos/#/primeiroAcesso\",\"VUE_APP_API_PUBLICACAO\":\"publicacao/v1/\",\"VUE_APP_API_RELATORIOS\":\"relatorio/v1/\",\"VUE_APP_API_SEGURANCA\":\"webapi.seguranca/v1/\",\"VUE_APP_API_SGA\":\"sga/v1/\",\"VUE_APP_CONTAINER_SIZE\":\"container-fluid\",\"VUE_APP_FOTO_USER_URL\":\"http://intranet.fcc.org.br/arquivos/albumFamilia/imagem/\",\"VUE_APP_RECUPERA_SENHA\":\"http://sgpdesenv.fcc.org.br/gestao_projetos/#/recuperaSenha\",\"VUE_APP_SUPORTE_URL\":\"http://netservices.fcc.org.br/helpdesk/\",\"BASE_URL\":\"\"}).VUE_APP_DEVELOPMENT\r\n          ? 'https://www.concursosfcc.com.br/arquivos/concursos/publicWeb2/modelo/3/imagem/marca_fcc.jpg'\r\n          : 'https://extranet.fcc.org.br/cdn/DESENV/fcclogo_fundo_branco-200x65',\r\n        {\r\n          responseType: 'blob'\r\n        }\r\n      )\r\n        .then(response => {\r\n          const reader = new FileReader()\r\n\r\n          reader.addEventListener('load', () => {\r\n            context.commit('SET_LOGO', reader.result)\r\n          })\r\n          reader.readAsDataURL(response.data)\r\n        })\r\n        .catch(() => console.log('Erro ao carregar logo.'))\r\n    },\r\n    logout(context) {\r\n      context.commit('SET_AUTH', null)\r\n      context.commit('USER_AUTH', null)\r\n      context.commit('USER_MENU', null)\r\n      _libraries_fccStorage__WEBPACK_IMPORTED_MODULE_3__[\"default\"].clear()\r\n    }\r\n  },\r\n  getters: {\r\n    completeLayout: state => {\r\n      return !(\r\n        (state.dadosUser &&\r\n          state.dadosUser.usuarioParam &&\r\n          state.dadosUser.usuarioParam.vizualizar &&\r\n          state.dadosUser.usuarioParam.vizualizar === 'simplificado') ||\r\n        (state.metadataPage &&\r\n          state.metadataPage.vizualizar &&\r\n          state.metadataPage.vizualizar === 'simplificado') ||\r\n        state.simpleLayout\r\n      )\r\n    }\r\n  }\r\n}));\r\n\n\n//# sourceURL=webpack:///./node_modules/pkgfe.fccbase/store/index.js?");
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.