docker compose up of Oak server throws: SyntaxError: Duplicate export of 'type'
I am just learning how to use Docker, and am trying to put up a container of an Oak server. When running docker compose updocker compose up, it throws the error mentioned above. This doesn't happen locally, or on Deno Deploy. I'm not really sure where to start? Can I somehow ignore this error, or is it actually a problem?
FROM denoland/deno:1.10.3
EXPOSE 8000
WORKDIR /app
USER deno
ADD . /app
RUN deno cache --no-check src/index.ts
CMD ["run", "--allow-net", "--allow-read", "--allow-env", "--no-check", "src/index.ts"]
FROM denoland/deno:1.10.3
EXPOSE 8000
WORKDIR /app
USER deno
ADD . /app
RUN deno cache --no-check src/index.ts
CMD ["run", "--allow-net", "--allow-read", "--allow-env", "--no-check", "src/index.ts"]
The full error is:
server | error: Uncaught SyntaxError: Duplicate export of 'type'
server | export { type NativeRequest } from "./http_server_native_request.ts";
server | ~~~~
server | at <anonymous> (https://deno.land/x/oak@v11.1.0/mod.ts:93:10)
server | error: Uncaught SyntaxError: Duplicate export of 'type'
server | export { type NativeRequest } from "./http_server_native_request.ts";
server | ~~~~
server | at <anonymous> (https://deno.land/x/oak@v11.1.0/mod.ts:93:10)
Any help would be greatly appreciated, thank you
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.