Skip to content

Updates required because of version changes #3

Description

@shelagh-lewins-ucl

This is a great example, thank you so much - I couldn't have got my code working without it.
I had to change a few things in the code because of version changes.

  1. meteor-node-stubs now uses stream-http instead of http-browserify
    [bug] Update to 0.3.3 causes error on the client. meteor/node-stubs#14

So the 'hack' fix to Response in the client code isn't needed, and in fact causes an error:

Error: Cannot find module 'meteor-node-stubs/node_modules/http-browserify/lib/response'

I had to update meteor-node-stubs because the version of stream-http it included used the Buffer polyfill which is no longer included in Meteor by default:

meteor/meteor@6f75eae

  1. On the server, I had to change:

import http from 'http';

to:

const http = require('http');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions