No export name XYZ found

functions:
  wsConnect:
    handler: src/handlers/wsConnect.handler
    name: ${self:provider.stage}-wsConnect
    environment:
      WS_SERVICE: ${self:provider.stage}-wsService
    events:
      - websocket:
          route: $connect
  wsDisconnect:
    handler: src/handlers/wsDisconnect.handler
    name: ${self:provider.stage}-wsDisconnect
    environment:
      WS_SERVICE: ${self:provider.stage}-wsService
    events:
      - websocket:
          route: $disconnect
  wsDefault:
    handler: src/handlers/wsDefault.handler
    name: ${self:provider.stage}-wsDefault
    events:
      - websocket:
          route: $default
resources:
	Outputs:
	    ServiceEndpoint:
	      Export:
	        Name: "rest-wsAPI"
	    ServiceEndpointWebsocket:
	      Export:
	        Name: "webSocketAPI"
custom:
  importwebSocketAPI:
    Fn::ImportValue: webSocketAPI

I have created this WebSocket and tried to deploy it for the first time, It is showing No export name webSocketAPI found, custom: tag is executing before output exports the API. How can I do it with DependsOn or is there any other way for doing this?