Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix yarn workaround for Windows #916

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kpoxo6op
Copy link

@kpoxo6op kpoxo6op commented May 11, 2024

Fix yarn workaround for Windows.

npx degit 'timlrx/tailwind-nextjs-starter-blog'

yarn
➤ YN0000: ┌ Resolution step
...
➤ YN0000: └ Completed in 16s 814ms

yarn dev
Unbound variable "PWD"
# Try workaround from Readme
set PWD="$(pwd)"
yarn dev        
Unbound variable "PWD"
# Try the fixed syntax for the workaround
$env:PWD = $(Get-Location).Path
yarn dev
  ▲ Next.js 14.2.3
  - Local:        http://localhost:3000

 ✓ Starting...
Warning: Contentlayer might not work as expected on Windows
 ✓ Ready in 3.5s
Contentlayer config change detected. Updating type definitions and data...
successCallback C:/Users/borex/code/test/.contentlayer
(node:796) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:796) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
Local search index generated...
Generated 13 documents in .contentlayer

Copy link

vercel bot commented May 11, 2024

@kpoxo6op is attempting to deploy a commit to the timlrx's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant