You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the npx commands for using Greenwood, there are some errors for files not found in node_modules,
ex.
% npx @greenwood/cli serve
Downloading Chromium r818858 - 132.4 Mb [====================] 100% 0.0s
-------------------------------------------------------
Welcome to Greenwood ♻️
-------------------------------------------------------
Running Greenwood with the serve command.
Initializing project config
Initializing project workspace contexts
Generating graph of workspace files...
Started local development server at localhost:1984
Serializing pages at http://127.0.0.1:1984
pages to generate
src/pages/index.md
serializing page... /
Error: ENOENT: no such file or directory, open '/Users/owenbuckley/Workspace/scratch/node_modules/es-module-shims/dist/es-module-shims.js'
Error: ENOENT: no such file or directory, open '/Users/owenbuckley/Workspace/scratch/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js'
Serializing completefor page /.
done serializing all pages
@rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
copying graph.json...
Initializing project config
Initializing project workspace contexts
Generating graph of workspace files...
Started production test server at localhost:8080
Error: ENOENT: no such file or directory, open '/Users/owenbuckley/Workspace/scratch/node_modules/es-module-shims/dist/es-module-shims.js'
Error: ENOENT: no such file or directory, open '/Users/owenbuckley/Workspace/scratch/node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js'
Details
This is likely due to the fact that certain dependencies are assumed to be in the user's current directory where a node_modules directory would be. When running with npx then this wouldn't exist, so how to resolve these???
The text was updated successfully, but these errors were encountered:
% mkdir -p src/pages
owenbuckley@Owens-MBP-2 npx-test % echo "## hello world" > src/pages/index.md
owenbuckley@Owens-MBP-2 npx-test % npx @greenwood/cli serve
Downloading Chromium r818858 - 132.4 Mb [====================] 100% 0.0s
-------------------------------------------------------
Welcome to Greenwood ♻️
-------------------------------------------------------
Running Greenwood with the serve command.
Initializing project config
Initializing project workspace contexts
Generating graph of workspace files...
Started local development server at localhost:1984
Serializing pages at http://127.0.0.1:1984
pages to generate
src/pages/index.md
serializing page... /
Serializing complete for page /.
done serializing all pages
@rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
copying graph.json...
Initializing project config
Initializing project workspace contexts
Generating graph of workspace files...
Started production test server at localhost:8080
Though of course browsers like Safari and Chrome might still expect certain files related to PWA like assets when you load a page.
Error: ENOENT: no such file or directory, open '/Users/owenbuckley/Desktop/npx-test/public/favicon.ico'
Perhaps we can find a way to provide a default favicon.ico in the meantime? I can add that as a requirement to #194.
Type of Change
Summary
When running the
npx
commands for using Greenwood, there are some errors for files not found in node_modules,ex.
Details
This is likely due to the fact that certain dependencies are assumed to be in the user's current directory where a node_modules directory would be. When running with
npx
then this wouldn't exist, so how to resolve these???The text was updated successfully, but these errors were encountered: