libsql/client package giving parsing error
Unanswered
Maine Coon posted this in #help-forum
Maine CoonOP
User
⨯ ../../node_modules/.pnpm/@libsql+client@0.4.0-pre.7/node_modules/@libsql/client/LICENSE
Module parse failed: Unexpected token (1:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| Copyright (c) 2023 libSQL
Import trace for requested module:
../../node_modules/.pnpm/@libsql+client@0.4.0-pre.7/node_modules/@libsql/client/LICENSE
⨯ ../../node_modules/.pnpm/@libsql+client@0.4.0-pre.7/node_modules/@libsql/client/LICENSE
Module parse failed: Unexpected token (1:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
MIT License|
| Copyright (c) 2023 libSQL
Import trace for requested module:
../../node_modules/.pnpm/@libsql+client@0.4.0-pre.7/node_modules/@libsql/client/LICENSE
15 Replies
@Maine Coon User
⨯ ../../node_modules/.pnpm/@libsql+client@0.4.0-pre.7/node_modules/@libsql/client/LICENSE
Module parse failed: Unexpected token (1:4)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> MIT License
|
| Copyright (c) 2023 libSQL
Import trace for requested module:
../../node_modules/.pnpm/@libsql+client@0.4.0-pre.7/node_modules/@libsql/client/LICENSE
try this in
next.config.js/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
esmExternals: true,
},
};
module.exports = nextConfig;@Maine Coon still the same issue bro
what version of next are you using?
Maine CoonOP
14.0.4
@Maine Coon 14.0.4
when does this error occur?
Maine CoonOP
whenever i make a api call using trpc to server where db is imported from db package then , am using turborepo
@Maine Coon whenever i make a api call using trpc to server where db is imported from db package then , am using turborepo
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ['the-repo-name-of-db'],
},
}
module.exports = nextConfigtry this
Maine CoonOP
no bro it didn't worked
🥲
@Maine Coon no bro it didn't worked
oh i have no idea then, try asking here
https://discord.com/invite/4B5D7hYwub
https://discord.com/invite/4B5D7hYwub
Maine CoonOP
ok bro , one thing how to make a trpc call inside a server component
Maine CoonOP
ok bro thank you
@Maine Coon ok bro thank you
also check out the template from create-t3-app, they have all the thing setup for app router
https://create.t3.gg/
https://create.t3.gg/
Maine CoonOP
yess bro i will look into it thanks