Can we expect some improvement of documentation


#1

I have tried to use @dojo/framework/request according to https://dojo.io/docs/index.html#doc--dojo__framework__v3_0_0__src__core__README_md--docs__core__request_md--making-requests
const foo = request("/export/foo",{}).then(response =>response.json());
It causes:
errors: ./node_modules/@dojo/framework/core/request.mjs Module build failed: Error: Line 40: Unexpected token ( at ErrorHandler.constructError

I have tried to use @dojo/framework/on following docs at
https://dojo.io/docs/index.html#doc--dojo__framework__v3_0_0__src__core__README_md--docs__core__on_md--docs__core__on_md
import {on} from '@dojo/framework/core/on';
Result:
[...]/node_modules/@dojo/framework/core/on"' has no exported member 'on'.

I am really afraid that Dojo2+ is not ready for use yet. Sorry for my a bit frustrated words, but I am a bit frustrated… :slight_smile:


#2

Hi @Radouch, thanks for your post. Sorry to hear you’ve been having problems with the request and on modules. We are always looking to improve our documentation and guidance for developers, so thanks for bringing this to our attention. It could be tricky deduce exactly what’s going on in your development environment, so what I’ve created a minimal reproduction of how to use request using CodeSandbox which you can find here: https://codesandbox.io/s/4j2wk0nnww . If you need help with the on module also let me know.