Fyzz
Fyzz2y ago

getting this error when trying to set up

getting this error when trying to set up clerk and convex auth
Preparing Convex functions...
Unexpected Error: SyntaxError: 'from' expected. (13:24)
11 |
12 | import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
> 13 | import type * as auth.convex from "../auth.convex";
| ^
14 |
15 | /**
Preparing Convex functions...
Preparing Convex functions...
Unexpected Error: SyntaxError: 'from' expected. (13:24)
11 |
12 | import type { ApiFromModules, FilterApi, FunctionReference } from "convex/server";
> 13 | import type * as auth.convex from "../auth.convex";
| ^
14 |
15 | /**
Preparing Convex functions...
5 Replies
ballingt
ballingt2y ago
@Fyzz what does your convex/auth.config.js look like?
Fyzz
FyzzOP2y ago
const config = {
providers: [
{
domain: process.env.CLERK_JWT_ISSUER_DOMAIN,
applicationID: "convex",
},
],
};

export default config;
const config = {
providers: [
{
domain: process.env.CLERK_JWT_ISSUER_DOMAIN,
applicationID: "convex",
},
],
};

export default config;
ballingt
ballingt2y ago
@Fyzz is it .js or .ts? This should be convex/auth.config.js, it doesn't work if it's convex/auth.config.ts
Fyzz
FyzzOP2y ago
That was it 🤦🏽‍♂️ oops js but the name was wrong thank you for the help
Michal Srb
Michal Srb2y ago
It's a known problem on our side that we don't support files with dots in their names (outside of auth.config.js), but we currently don't handle this scenario well. Sorry about that!

Did you find this page helpful?