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

yarn start doesn't reflect updates on .mdx on local #1030

Open
Rindrics opened this issue Dec 7, 2024 · 0 comments
Open

yarn start doesn't reflect updates on .mdx on local #1030

Rindrics opened this issue Dec 7, 2024 · 0 comments

Comments

@Rindrics
Copy link
Contributor

Rindrics commented Dec 7, 2024

Context

Adding new page under docs/

Problem

  • Updates on new- and preexistent- .mdx files aren't reflected to the page served by yarn start
    • yarn says ✓ Compiled in 2.8s (NNNN modules) every time I update .mdx
  • Clicking link to the new page, such as link on side navigation column and DocCard results in 404

Spec of the environment the problem observed

  • OS: macOS 15.1
  • Processor: 2.3 GHz Quad-Core Intel Core i7
  • RAM: 32 GB 3733 MHz LPDDR4X
  • Node.js: v22.3.0

Additional Information

Although the causal relationship is unclear, yarn build fails with the following error:

❯ yarn build
yarn run v1.22.19
warning ../../../package.json: No license field
$ cross-env INIT_CWD=$PWD NODE_OPTIONS='--max-old-space-size=6144' next build && cross-env NODE_OPTIONS='--experimental-json-modules' node ./scripts/postbuild.mjs
  ▲ Next.js 14.2.10

   Creating an optimized production build ...
successCallback /MY_MACHINE/signoz-web/.contentlayer
SuccessCallbackError {
  error: SyntaxError: Unexpected identifier 'assert'
      at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
      at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:164:18)
      at callTranslator (node:internal/modules/esm/loader:429:14)
      at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:30),
  _tag: 'SuccessCallbackError',
  toString: [Function (anonymous)],
  [Symbol()]: {
    error: SyntaxError: Unexpected identifier 'assert'
        at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
        at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:164:18)
        at callTranslator (node:internal/modules/esm/loader:429:14)
        at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:30)
  },
  [Symbol()]: [ 'error' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
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

No branches or pull requests

1 participant