[PWA-324] [bug]: venia-static files don't load out-of-the box with scaffolding command #2143
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
See #2109
This fix resolves two issues, but has uncovered one more, which will be investigated and resolved in a fast follow.
Fixes:
yarn watch
oryarn start
venia-static
missing from published packageKnown Issues:
yarn watch
, webpack is not actually serving the actual assets. Nothing is throwing an error, but something is wrong with the content type, or the headers, or something odd that webpack is doing with its virtual file system. You can navigate directly to assets and they load fine (eg./venia-static/favicon.ico
), so this should just be something simple with webpack or UPWARD. To be fixed by https://jira.corp.magento.com/browse/PWA-357.Related Issue
Acceptance
Verification Stakeholders
Specification
Verification Steps
Note: The
DEBUG_PROJECT_CREATION
flag below will simulate fetches of package tarballs from npm by runningnpm pack
locally and serving those.mkdir create-pwa-test; cd create-pwa-test; DEBUG_PROJECT_CREATION=1 ../pwa-studio/packages/create-pwa/bin/create-pwa
yarn watch
, and verify that 500 errors are no longer being thrownnode_modules/@magento/venia-ui/
and verify thatvenia-static
is now there in the packageScreenshots / Screen Captures (if appropriate)
Checklist