Link to local version of next
Unanswered
Shar Pei posted this in #help-forum
Shar PeiOP
Has anyone had any luck linking to a locally built version of Next.JS?
I've gone through the [instructions](https://github.com/vercel/next.js/blob/canary/contributing/core/developing-using-local-app.md#set-as-a-local-dependency-in-packagejson) and if I run Next.JS locally using
If instead I run
I've gone through the [instructions](https://github.com/vercel/next.js/blob/canary/contributing/core/developing-using-local-app.md#set-as-a-local-dependency-in-packagejson) and if I run Next.JS locally using
pnpm dev (as suggested) it gives me a bunch of errors because the dev build does not output any *.d.ts files in the dist dir.If instead I run
pnpm build, it will generate the *.d.ts files in the dist dir, but instead I get the errors:@client-sites/my-app: Failed to compile.
@client-sites/my-app: ../../../../path/to/local/next.js/packages/next/dist/build/webpack/loaders/next-route-loader/helpers.js
@client-sites/my-app: Error: invalid type: sequence, expected a string at line 1 column 1121
@client-sites/my-app: Import trace for requested module:
@client-sites/my-app: ../../../../path/to/local/next.js/packages/next/dist/build/webpack/loaders/next-route-loader/helpers.js
@client-sites/my-app: ../../../../path/to/local/next.js/packages/next/dist/pages/_app.js
@client-sites/my-app: Error: invalid type: sequence, expected a string at line 1 column 1121
...
@client-sites/my-app: > Build failed because of webpack errors