1
resposta

erro ReferenceError: Atendimento is not defined

ReferenceError: Atendimento is not defined at C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\controllers\atendimento.js:20:9 at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) at next (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) at C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:281:22 at Function.process_params (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:341:12) at next (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:275:10) at jsonParser (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\body-parser\lib\types\json.js:101:7) at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) ReferenceError: Atendimento is not defined at C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\controllers\atendimento.js:20:9 at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) at next (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) at C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:281:22 at Function.process_params (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:341:12) at next (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:275:10) at jsonParser (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\body-parser\lib\types\json.js:101:7) at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) ReferenceError: Atendimento is not defined at C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\controllers\atendimento.js:20:9 at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) at next (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\route.js:137:13) at Route.dispatch (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\route.js:112:3) at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5) at C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:281:22 at Function.process_params (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:341:12) at next (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\index.js:275:10) at jsonParser (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\body-parser\lib\types\json.js:101:7) at Layer.handle [as handle_request] (C:\Users\RayellyKarineVasconc\Desktop\PROJETO RAY\node_modules\express\lib\router\layer.js:95:5)

1 resposta

Pode ser que Atendimento não está definido dentro do Controller. Caso tenha sido definido, poderia postar o código para melhor avaliação?