Skip to content

Running this project with netlify dev doesn't work #42

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

Closed
khendrikse opened this issue Mar 1, 2023 · 0 comments · Fixed by netlify/cli#5551
Closed

Running this project with netlify dev doesn't work #42

khendrikse opened this issue Mar 1, 2023 · 0 comments · Fixed by netlify/cli#5551
Assignees

Comments

@khendrikse
Copy link
Contributor

khendrikse commented Mar 1, 2023

When you run this project with a netlify cli version higher than 12.12.0 it will only show the wasm example.

what you should see

image

what you actually see

image

I wonder if it has to do with this change netlify/cli@27bea34

Running netlify dev BEFORE that commit gives:

◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ Using simple static server because '[dev.framework]' was set to '#static'
◈ Running static server from "edge-functions-examples/public"
◈ Setting up local development server

◈ Static server listening to 3999

   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   ◈ Server now ready on http://localhost:8888   │
   │                                                 │
   └─────────────────────────────────────────────────┘

◈ Loaded edge function [page]
◈ Loaded edge function abtest
◈ Loaded edge function context-site
◈ Loaded edge function cookies
◈ Loaded edge function country-block
◈ Loaded edge function environment
◈ Loaded edge function error
◈ Loaded edge function geolocation
◈ Loaded edge function hello
◈ Loaded edge function image-external
◈ Loaded edge function image-internal
◈ Loaded edge function include
◈ Loaded edge function json
◈ Loaded edge function localized-content
◈ Loaded edge function log
◈ Loaded edge function proxy-requests
◈ Loaded edge function rewrite
◈ Loaded edge function set-request-header
◈ Loaded edge function set-response-header
◈ Loaded edge function transform
◈ Loaded edge function wasm
{
  declarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ],
  filteredDeclarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ]
}
[[page]] serve page for http://localhost:8888/ 
{
  declarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ],
  filteredDeclarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ]
}
{
  declarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ],
  filteredDeclarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ]
}
{
  declarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ],
  filteredDeclarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ]
}
{
  declarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ],
  filteredDeclarations: [
    { function: 'transform', path: '/*' },
    { function: 'set-response-header', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ]
}

Running it after the commit:

◈ Netlify Dev ◈
◈ Ignored general context env var: LANG (defined in process)
◈ Using simple static server because '[dev.framework]' was set to '#static'
◈ Running static server from "edge-functions-examples/public"
◈ Setting up local development server

◈ Static server listening to 3999

   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   ◈ Server now ready on http://localhost:8888   │
   │                                                 │
   └─────────────────────────────────────────────────┘

◈ Loaded edge function [page]
◈ Loaded edge function abtest
◈ Loaded edge function context-site
◈ Loaded edge function cookies
◈ Loaded edge function country-block
◈ Loaded edge function environment
◈ Loaded edge function error
◈ Loaded edge function geolocation
◈ Loaded edge function hello
◈ Loaded edge function image-external
◈ Loaded edge function image-internal
◈ Loaded edge function include
◈ Loaded edge function json
◈ Loaded edge function localized-content
◈ Loaded edge function log
◈ Loaded edge function proxy-requests
◈ Loaded edge function rewrite
◈ Loaded edge function set-request-header
◈ Loaded edge function set-response-header
◈ Loaded edge function transform
◈ Loaded edge function wasm
{
  declarations: [
    { function: 'wasm', path: '/*' },
    { function: '[page]', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ],
  filteredDeclarations: [
    { function: 'wasm', path: '/*' },
    { function: '[page]', path: '/*' },
    { function: 'set-request-header', path: '/*' },
    { function: 'include', path: '/*' },
    { path: '/hello', function: 'hello' },
    { path: '/geolocation', function: 'geolocation' },
    { path: '/json', function: 'json' },
    { path: '/cookies', function: 'cookies' },
    { path: '/rewrite', function: 'rewrite' },
    { path: '/abtest', function: 'abtest' },
    { path: '/image-internal', function: 'image-internal' },
    { path: '/image-external', function: 'image-external' },
    { path: '/log', function: 'log' },
    { path: '/country-block', function: 'country-block' },
    { path: '/localized-content', function: 'localized-content' },
    { path: '/fetch-joke', function: 'proxy-requests' },
    { path: '/environment', function: 'environment' },
    { path: '/error', function: 'error' },
    { path: '/context-site', function: 'context-site' },
    { path: '/wasm', function: 'wasm' },
    { path: '/example/*', function: '[page]' },
    { path: '/', function: '[page]' }
  ]
}
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 a pull request may close this issue.

1 participant